Getting Page count with AppleScript
It been a long time since I visited so I hope everyone is well.
Does anyone know how to get the page count of a document with Applescript. The best I've done is to divide the total number of words by the average amount of words on a page. This isn't perfect but it give me something close. I'm using the following snippets to get the info, which is being used to popular real time statitics about the progress of book four on my website.
set WordCount to word count
set ParagraphCount to paragraph count
set PageCount to round (WordCount / 184)
set CharacterCount to character count
Paragraph count doesn't seem to come too close either. I think it just adds up the number of carridge returns in the document.
Cheers
Chris
http://www.thomasstrange.com
PowerMac G5 2.5 Dual; PowerBook G4 15, Mac OS X (10.4.10), Apple Cinema Display x 2