• 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 folder exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: check if a folder exists
      • From: Ken Grimm <email@hidden>
    • Briskets
      • From: Mr Tea <email@hidden>
References: 
 >Re: check if a folder exists (From: Richard Baskett <email@hidden>)

  • Prev by Date: Re: check if a folder exists
  • Next by Date: Re: any news from wwdc?
  • Previous by thread: Re: check if a folder exists
  • Next by thread: Briskets
  • Index(es):
    • Date
    • Thread