• 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: when words aren't words
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: when words aren't words
      • From: Bill Briggs <email@hidden>
References: 
 >Re: when words aren't words (From: David Hanauer <email@hidden>)
 >Re: when words aren't words (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: when words aren't words
  • Next by Date: arrange icons on desktop
  • Previous by thread: Re: when words aren't words
  • Next by thread: Re: when words aren't words
  • Index(es):
    • Date
    • Thread