• 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
Re: Textedit and word counting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Textedit and word counting


  • Subject: Re: Textedit and word counting
  • From: email@hidden
  • Date: Sun, 27 Jan 2008 20:31:45 -0800


Thanks. I will work with this and see if anyone one else has an answer. It is an odd problem.
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



Brian Johnson <email@hidden>

01/27/08 05:15 PM

To
email@hidden
cc
email@hidden
Subject
Re: Textedit and word counting






Dan, There's no need to paste them into a new document, and there's no
need to twiddle the TIDs, just copy to the clipboard and run

  display dialog("Words: " & (count words of (the clipboard)) )

Unfortunately, that doesn't answer the question as to why you'd start
getting the same answer after a while...

 - 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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Textedit and word counting (From: Brian Johnson <email@hidden>)

  • Prev by Date: Is iCal slower?
  • Next by Date: Re: changing part of a string
  • Previous by thread: Re: Textedit and word counting
  • Next by thread: changing part of a string
  • Index(es):
    • Date
    • Thread