• 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: applescript's text item delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: applescript's text item delimiters


  • Subject: Re: applescript's text item delimiters
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 26 Oct 2004 21:16:32 -0700

On Oct 26, 2004, at 8:34 PM, donald liu wrote:

The following script script returnns "nib" instead of "foo~.nib". Is "~" a special character in AppleScript?

set foo to "Macintosh HD:Users:dliu:Desktop: 10_25:foo.app:Contents:Resources:English.lproj:foo~.nib"
set AppleScript's text item delimiters to ":"
set boo to get last word of quoted form of (foo as text)
set AppleScript's text item delimiters to ""
return boo

Well, it's not considered part of a word, and that's what you asked for. Presumably, you meant "last text item" instead. And you probably don't want the "quoted form" there.



--Chris Nebel AppleScript Engineering _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >applescript's text item delimiters (From: donald liu <email@hidden>)

  • Prev by Date: Re: Applescript, VectorScript & VectorWorks
  • Next by Date: Re: Dice
  • Previous by thread: applescript's text item delimiters
  • Next by thread: Re: applescript's text item delimiters
  • Index(es):
    • Date
    • Thread