Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 19th, 2024, 5:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Page Count
PostPosted: January 25th, 2007, 4:54 pm 
Offline

Joined: April 4th, 2005, 1:45 pm
Posts: 17
Is there a way I can find out how many pages are in my publication without having to count them.

I add pages daily and would like to find out a weekly progress. Currently I have to physically count every page in order to find out my weekly progress.

Thanks,


Top
 Profile  
 
 Post subject: Better to track your hours
PostPosted: January 25th, 2007, 5:47 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
I find it more accurate to track the hours I've worked on a project. Go into Publication Properties, then click the "Information" tab. It shows the number of hours you've been working. You can add Notes, and you can reset the counter after adding the time to your Notes section, so each week will have the number of hours you worked, plus your notes of accomplishment.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


Top
 Profile Visit website  
 
 Post subject: Script
PostPosted: January 25th, 2007, 6:30 pm 
Offline

Joined: November 11th, 2004, 1:43 pm
Posts: 172
Location: Buckinghamshire, UK
You might find this useful

http://www.digitalworkshop.com/Resource ... ript.shtml


Top
 Profile  
 
 Post subject:
PostPosted: January 25th, 2007, 6:37 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
The following script will print the number of pages in a publication to the script console:
Code:
var oPub = GetPublication();
var oChap = oPub.GetFirstChild();
var nPages = 0;
while (oChap)
{
   var oPage = oChap.GetFirstChild();
   while (oPage)
   {
      oPage = oChap.GetNextChild( oPage );
      nPages++;
   }
   oChap = oPub.GetNextChild( oChap );
}
Debug.trace("Publication has " + nPages + " pages.\n");

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group