Re: Get only the name of the file, instead of the whole path!
Re: Get only the name of the file, instead of the whole path!
- Subject: Re: Get only the name of the file, instead of the whole path!
- From: Michelle Steiner <email@hidden>
- Date: Fri, 18 Jan 2008 10:18:01 -0700
On Jan 18, 2008, at 10:03 AM, Luther Fuller wrote:
Where is the distinction between "AppleScript's text item
delimiters" and "text item delimiters" documented?
Without "applescript's" prefixing it, "text item delimiters" could
refer to an application's property if it were inside the application's
tell-block. Or, even if an application did not have that property,
its scripting abilities could be poorly written and not let it pass
the property up the chain to Applescript itself, but cause an error.
For instance,
tell application "MT-NewsWatcher"
set text item delimiters to {"AAA"}
end tell
--> "MT-NewsWatcher got an error: Can’t set text item delimiters to
{\"AAA\"}."
But this works:
tell application "MT-NewsWatcher"
set AppleScript's text item delimiters to {"AAA"}
end tell
--
"Better Plan B than plan d & c."
_______________________________________________
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