• 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
How to determine if a folder exists on a system?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to determine if a folder exists on a system?


  • Subject: How to determine if a folder exists on a system?
  • From: "OSullivan, Steven" <email@hidden>
  • Date: Wed, 08 Jul 2009 09:38:31 -0700
  • Thread-topic: How to determine if a folder exists on a system?

Title: How to determine if a folder exists on a system?
Hello all,

I am trying to do something that I know is very simple (and documented somewhere, if I could just FIND it!) and would appreciate any and all suggestions as how to go about it.

In pseudocode, I am trying to accomplish:

if folder "/usr/local/bin" does not exist then
    create it
else
    exit block
end if

I do not seem to be able to track down exactly how I should reference the path (alias, POSIX, text?) and so, how to get a reliable answer as to the overall question, "Does /usr/local/bin exist on this machine?"

Thanks to any and all who reply.

Happy post 4th to any Yanks out there!

Regards,

Steve O'Sullivan
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to determine if a folder exists on a system?
      • From: Steve Thompson <email@hidden>
    • Re: How to determine if a folder exists on a system?
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Automating a Salutation in Mail
  • Next by Date: Re: Retrieving a "Range" in Excel for storage in a Database
  • Previous by thread: Re: Retrieving a "Range" in Excel for storage in a Database
  • Next by thread: Re: How to determine if a folder exists on a system?
  • Index(es):
    • Date
    • Thread