Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JuliaYolda

macrumors newbie
Original poster
Aug 14, 2009
1
0
Hey,
does anyone know how I can exclude the footnotes in my word count?

thanks!

Julia
 

mysterytramp

macrumors 65816
Jul 17, 2008
1,334
4
Maryland
Here's a possibility ...

Hit Command-A to select the entire document.
Then press the Inspector button, choose Document and choose info.
The "Range" will be the selection, which will be only the text of your document, not the footnotes.

Not the best, but it works.

mt
 

mysterytramp

macrumors 65816
Jul 17, 2008
1,334
4
Maryland
Curiously, this script seems to present the correct number:

Code:
tell application "Pages"
	set fileName to the name of document 1
	set numWords to the count of words of document 1
	display dialog fileName & " has " & (numWords as text) & " words"	
end tell

In case you don't know ...

If you run AppleScript Utility, you'll get a script menu. Create this script and save it in:

/Users/<your user name>/Library/Scripts/Applications/Pages/

folder. It will appear at the bottom of the AppleScript menu.

mt
 

mysterytramp

macrumors 65816
Jul 17, 2008
1,334
4
Maryland
And this script:

Code:
tell application "Pages"
	set fileName to the name of document 1
	set numWords to the count of words of document 1
	set numChars to the count of characters of document 1
	set numGrafs to the count of paragraphs of document 1
	display dialog fileName & " has " & return & ¬
		"  " & (numChars as text) & " characters" & return & ¬
		"  " & (numWords as text) & " words" & return & ¬
		"  " & (numGrafs as text) & " paragraphs"	
end tell

gives the actual characters -- which includes spaces and empty paragraphs -- and the actual paragraphs -- Pages strips out blank paragraphs from its count. For example:

"Paragraph One

Paragraph Two"

would be three paragraphs under the script but two paragraphs according to Pages. I can see how Pages paragraph counting is helpful, but I don't get the character count (and Word does the same thing).

mt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.