• 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: File exists on a posix path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Dealing with Sliders...
  • Next by Date: Re: How to escape paragraph return and enter to InDesign
  • Previous by thread: Re: File exists on a posix path
  • Next by thread: Dealing with Sliders...
  • Index(es):
    • Date
    • Thread