Re: File exists on a posix path
Re: File exists on a posix path
- Subject: Re: File exists on a posix path
- From: has <email@hidden>
- Date: Fri, 10 Feb 2006 20:57:16 +0000
Paul Berkowitz wrote:
>Evidently 'exists' is now part of the AppleScript language
The keyword 'exists' has always been defined as a reserved word (a command name) in AppleScript's own dictionary.
(The reasons are historical and no doubt seemed like a good idea at the time.)
>It's odd that it not only compiles but gives a (spurious) result.
It's always compiled. However, I'm betting you're using Script Editor 2.x for this, and SE 2 defines 'exists' as a command and provides an event handler to handle it.
>But it will tell you that any string exists.
No, it just tells you there's another bug in Cocoa Scripting. You'd get the same result if you did:
tell application "TextEdit"
"Bigfoot" exists
end tell
Any result other than error -1727 ("expected a reference") or error -1708 ("<reference> doesn't understand the <commandName> message") is wrong.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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