Re: IF Syntax
Re: IF Syntax
- Subject: Re: IF Syntax
- From: Michelle Steiner <email@hidden>
- Date: Fri, 4 Apr 2003 11:29:58 -0700
On Friday, April 4, 2003, at 11:05 AM, Peter Nedeljkovich wrote:
What is the correct syntax for an IF statement?
I'm trying to determine if Folder1 exists on a drive called Shared. If
it doesn't. then create it. Otherwise check for the existence of
Folder2
and create it if it doesn't.
tell application "Finder"
if not (exists folder "folder1" of disk "Dora") then
make new folder with properties {name:"folder1"} at disk "dora"
else if not (exists folder "folder2" of disk "Dora") then
make new folder with properties {name:"folder2"} at disk "dora"
end if
end tell
--
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >IF Syntax (From: "Peter Nedeljkovich" <email@hidden>) |