• 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: 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

References: 
 >What's in a word (From: John McClintock <email@hidden>)

  • Prev by Date: rép: 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