• 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: What's in a word
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's in a word


  • Subject: Re: What's in a word
  • From: Jon Pugh <email@hidden>
  • Date: Wed, 17 Oct 2012 20:40:01 -0700

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



 _______________________________________________
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


  • Follow-Ups:
    • Re: What's in a word
      • From: Paul Berkowitz <email@hidden>
    • Re: What's in a word
      • From: John McClintock <email@hidden>
    • Re: What's in a word
      • From: "koenig.yvan" <email@hidden>
References: 
 >What's in a word (From: John McClintock <email@hidden>)

  • Prev by Date: Re: What's in a word
  • Next by Date: Re: What's in a word
  • Previous by thread: Re: What's in a word
  • Next by thread: Re: What's in a word
  • Index(es):
    • Date
    • Thread