• 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: "Saunders, Eric" <email@hidden>
  • Date: Wed, 17 Oct 2012 15:02:24 -0400

I do not know why, but if you change the filename to end with a letter as opposed to a number, then word -1 is jpg for both.

Eric Saunders

On Wed, Oct 17, 2012 at 1:03 PM, 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?


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

?

John McClintock
email@hidden




 _______________________________________________
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

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