Article ID: 125581
Article Last Modified on 11/21/2006
Count
Count 'something' [Each] 'type'
The Each argument tells the Count command what to count, as in --Count each word-- or --Count each paragraph--.
tell application "Microsoft Word"
open "MyWordFile"
Count words in window 1
end tell
tell application "Microsoft Word"
open "MyWordFile"
Count each word in window 1
end tell
Additional query words: Apple Script
Keywords: kbinfo kbmacroexample kb3rdparty KB125581