• 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: Check if a file exists fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check if a file exists fails


  • Subject: Re: Check if a file exists fails
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 06 Jan 2008 16:19:31 +0100

On 5/01/08 23:23, Bernhard Waldbrunner wrote:

Hello!

I'm working on a small Folder Action Script, whose second line looks like (exactly how I learned from the AppleScript Language Guide):


Hello Bernhard,

You just met what makes the ASLG so nice: each word counts... ;-)

On page 129, Table 4-1 ("Standard application-only commands") indeed lists command "exists"; moreover, that same table specifies "exists" as a "commonly supported" command.

Translation: AppleScript itself isn't able to execute command "exists", but an application _may_ provide such a command and know how to perform it.

So, as Matthew already noted, the Finder is such an application.
And so is System Events.

More generally, the "exists" command is described as determining "whether the object specified by a reference exists" (p. 139).

This thus means that even if an application provides an "exists" command, this is not necessarily for checking the existence of files (or folders, or disks...); for example, it could be provided by a word processor for checking whether the third paragraph exists.


HTH, Axel _______________________________________________ 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
References: 
 >Check if a file exists fails (From: Bernhard Waldbrunner <email@hidden>)

  • Prev by Date: Re: choose folder on Leopard
  • Next by Date: Re: Check if a file exists fails
  • Previous by thread: Re: Check if a file exists fails
  • Next by thread: Re: Check if a file exists fails
  • Index(es):
    • Date
    • Thread