Re: Novice question
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