• 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: Novice question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Novice question


  • Subject: Re: Novice question
  • From: John W Baxter <email@hidden>
  • Date: Tue, 6 Nov 2001 18:15:52 -0800

At 14:34 +0000 11/6/2001, Nigel Garvey wrote:
> -- Create the folder if it doesn't exist
> -- (assumes folderLocation is a previously defined string)
> tell application "Finder"
> if not (exists folder folderName of folder folderLocation) then
> make new folder at folder folderLocation with properties
>{name:foldername}
> end if
> end tell


My instincts say that I would put a try around the make new folder...
command, just in case this code gets executed twice "at once". Doing that
seems easier than proving that the problem could never happen.

--John

--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Re: Novice question (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Validate user input
  • Next by Date: Re: Using Data From Tab Delimited Text File
  • Previous by thread: Re: Novice question
  • Next by thread: Re: Novice question
  • Index(es):
    • Date
    • Thread