Re: when words aren't words
Re: when words aren't words
- Subject: Re: when words aren't words
- From: Christopher Nebel <email@hidden>
- Date: Mon, 14 Nov 2005 13:19:47 -0800
On Nov 14, 2005, at 11:30 AM, Emmanuel wrote:
At 1:41 PM -0500 11/14/05, David Hanauer wrote:
Overall, my experience is that AppleScript does a very good job at
defining a word, but it will likely be important for you to test
the nuances of your own application/script.
AppleScript's definition of words depends on the localization, I
think.
The proper term is not "localization", but "locale" -- in UI terms,
what you've set the Word Break popup to in the International
preference pane -- but otherwise correct. AppleScript's "word" is a
natural-language word (or at least as best the Internationalization
algorithms can guess), which is not even remotely the same thing as a
series of non-whitespace characters. If you want the latter, use
"text item delimiters", regular expressions, or some other solution,
but not "words".
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
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