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

Re: Check if folder exists??


  • Subject: Re: Check if folder exists??
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 12 Dec 2001 11:57:06 -0700

On 12/12/01 10:34 AM, Robbie Newton <email@hidden> wrote:

>So can you check to see if a folder exists before making a new one?


tell application "Finder"
if not (folder "dora:foobar" exists) then
make new folder with properties {name:"foobar"} at folder "Dora:")
end if
end tell

"exists" can go either before or after (folder "dora:foobar"); I think it
reads easier putting it after; others may disagree. <g>

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: Check if folder exists??
  • Next by Date: Changing OE identity from the script menu
  • Previous by thread: Re: Check if folder exists??
  • Next by thread: Re: Check if folder exists??
  • Index(es):
    • Date
    • Thread