Re: What's in a word
Re: What's in a word
- Subject: Re: What's in a word
- From: "koenig.yvan" <email@hidden>
- Date: Thu, 18 Oct 2012 11:48:58 +0200
Le 18/10/2012 à 05:40, Jon Pugh <email@hidden> a écrit :
> On Oct 17, 2012, at 10:03 AM, John McClintock wrote:
>> In the following, why is word -1 of a_url "jpg" and word -1 of the_url the whole file name?
>>
>> set a_url to "http://stereo-ssc.nascom.nasa.gov/browse/2009/08/02/ahead/euvi/195/1024/20090802_001530_n7euA_195.jpg"
>> set the_url to "http://stereo.gsfc.nasa.gov/browse/2012/10/09/ahead/cor1/1024/20121009_001024_s4c1A.jpg"
>>
>> display dialog "Word -1 of a_url is " & word -1 of a_url & return & "Word - 1 of the_url is " & word -1 of the_url
>>
>> ?
>
> In the System Preferences => Language & Test pane => Text tab, there is a popup named Word Break and it can be set to “Standard” which produces the behavior you observe. If you set it to “English (United States, Computer)” then you’ll see the behavior you expect (once you recompile your script).
>
> Credit goes to Chris Page who explained it to me.
>
> Jon
And if you receive files from "Standard" sources (those which don't use English) you will get odd results.
Yvan KOENIG (VALLAURIS, France) jeudi 18 octobre 2012 11:48:43
_______________________________________________
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