Hi,

For those of you who were looking to use a word count function in TextEdit.  
Try this:

• Go to your Utilities folder.  (cmd-shift-u when in the Finder)
• Open the Apple Script Editor app.
• Paste in the following text.

tell application "TextEdit"
        set WordCount to the number of words in the the front document
        display dialog "The wordcount is: " & WordCount
        
end tell

• Press cmd-comma to bring up the Preferences menu.
• Make sure the "Show Scripts menu in Menubar" is checked.
• close the Preferences window.
• Save the Apple Script as Word Count" to your Desktop.
• Open Macintosh HD.
• Open the Library folder.
• Open the Scripts folder.
• Open the TextEdit Scripts folder.  If one doesn't already exist, create it.  
Make sure to name it "TextEdit Scripts".
• Copy the Word Count AppleScript document you saved to the Desktop into this 
folder.
• Close all the windows.
• Open a TextEdit document.
• Press VO-M twice to get to the extra menus.
• Locate the one called AppleScript menu and activate it.
• Go down to TextEdit and over to the "Word Count" script.
• Press cmd-tab to take you back to TextEdit and a dialog will be there 
announcing the word count.

A few things to note:

• It will only count the words in the front most TextEdit document.
• If you don't like using the AppleScript menu, you can save this script as an 
application to your Desktop.  All you'll need to do then is have the TextEdit 
document open, get to your Desktop and run the Word Count app.  The same dialog 
will appear over your TextEdit document.

Hope I didn't forget any steps.

HTH.

Later...


Tim Kilburn
Fort McMurray, AB Canada

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at http://groups.google.com/group/macvisionaries?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to