• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Word wordcounts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Word wordcounts


  • Subject: Word wordcounts
  • From: Imap McGrant <email@hidden>
  • Date: Fri, 25 Mar 2005 10:48:05 -0600

tell application "Microsoft Word" to count of characters of active document

and

tell application "Microsoft Word" to count of words of active document

give widely differing results than the Tools > Word Count... function in the GUI (off by about 50% in the second case for the document I have open right now). Unfortunately my clients will be expecting the count from the GUI for the most part, and it would look funny to say the least to bill them 50% more than the number they can easily see for themselves. Does anyone know how to get the statistics reported in the GUI wordcount function in AppleScript? (Not just to display it, which I suppose I could do via GUI scripting, but to assign the data to variables in the script.)

Thanks in advance,
Michael


-- <http://globalocal.blogspot.com/>

In the midst of the word he was trying to say,
In the midst of his laughter and glee,
He had softly and suddenly vanished away---
For the Snark *was* a Boojum, you see.

- Lewis Carroll

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Word wordcounts
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Reduce multiple characters to single occurrence (via do shell script?)
  • Next by Date: Hoe to tell when a program is done?
  • Previous by thread: javascript - applescript // bear with me !
  • Next by thread: Re: Word wordcounts
  • Index(es):
    • Date
    • Thread