Here's yet ANOTHER way. I'm running Mac OS X 10.2.5.
-- ----------------------------------------------
tell application "Finder"
set targetfolderpath to "Macintosh HD:Users:cassj:testfolder" --
"testfolder" already exists
set newfoldername to "stoopidunderpants"
if folder (targetfolderpath & ":" & newfoldername) exists then
--do nothing
else
make new folder in folder targetfolderpath with properties
{name:newfoldername}
end if
end tell
-- ----------------------------------------------
Hope this helps....Cassj
|---------+------------------------------------->
| | Trevor DeVore |
| | <[EMAIL PROTECTED]|
| | > |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | .runrev.com |
| | |
| | |
| | 07/09/03 03:53 PM |
| | Please respond to |
| | use-revolution |
|---------+------------------------------------->
>----------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: Applescript for creating a new folder
|
>----------------------------------------------------------------------------------------------------------------------------|
On 7/9/03 Yves COPPE wrote
>Hi Trevor
>
>> You can check if a folder exists like this:
>>
>> tell application "Finder"
>> if not ("Macintosh HD:users:tdevore:t�st" exists) then
>> make new folder at "Macintosh HD:users:tdevore" with
>> properties {name:"t�st"}
>> end if
>> make new folder at "Macintosh HD:users:tdevore:t�st" with
>> properties {name:"t�sting"}
>> end tell
>>
>>
>
>It further create a folder on my desktop....
Hmmmm. D�sol�, mais I am no AppleScript expert (just barely learning) so I
don't know what the problem is. It works here. Scott seemed to have a
solution however.
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution