Re: applescript's text item delimiters
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