| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
display dialog("Words: " & (count words of (the clipboard)) )- B.Johnson (fellow Seattleite)
On Sun, 27 Jan 2008, email@hidden wrote:
I am trying to use a simple little Textedit script to count the number of words in text documents so they can be posted. This script works most of the time but it will eventually start to return the same number. I am not sure how to clear the memory so it will generate the right number. The way it is being used is to copy the content out of an email, into a text document, run the script and repeat. Can anyone see why this eventually gets clogged up?
set AppleScript's text item delimiters to "" tell application "TextEdit" to count words of document 1's text display dialog "Number of words is " & result
Dan Burbank Iridio - An R.R. Donnelley Company 5050 First Avenue S. Seattle, WA 98134 t 206.826.3352 c 206.718.8655 www.iridio.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users
| References: | |
| >Textedit and word counting (From: email@hidden) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.