Re: What's in a word
Re: What's in a word
- Subject: Re: What's in a word
- From: Shane Stanley <email@hidden>
- Date: Thu, 18 Oct 2012 08:55:10 +1100
On 18/10/2012, at 4:03 AM, John McClintock <email@hidden> wrote:
> In the following, why is word -1 of a_url "jpg" and word -1 of the_url the whole file name?
It's because in most languages a digit can't precede a stop within a word. Parsing text via words for all but the simplest cases is a bad idea because the rules are complex, language dependent, and can vary with versions of the OS. It's not an AppleScript thing -- it's the way text is parsed by the underlying text handling APIs.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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