Re: check if a folder exists
Re: check if a folder exists
- Subject: Re: check if a folder exists
- From: JollyRoger <email@hidden>
- Date: Wed, 08 May 2002 22:07:07 -0500
On 5/8/2002 3:29 PM, "Richard Baskett" <email@hidden> wrote:
>
You can just do a:
>
>
if folder aPath exists then
>
statements
>
else
>
statements
>
end if
Note that "exists" is a Finder command. You'll need to send this command to
the Finder for it to work correctly.
A tip: It would be beneficial to get into the habit of avoiding the use of
application commands (the Finder is an application) in situations where you
could use standard additions or other scripting addition commands to do the
job. Applications typically take longer to respond to commands than
standard additions / scripting additions, sometimes causing large delays
(the Finder is famous for this).
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.