Re: Checking if a folder exists and dealing with it
Re: Checking if a folder exists and dealing with it
- Subject: Re: Checking if a folder exists and dealing with it
- From: Thomas <email@hidden>
- Date: Wed, 4 Dec 2002 18:37:46 +0100
Another solution without "try" block using the "exists" command :
set theFolders to every folder of ShortFoundTemplateMatches
repeat with aFolder in theFolders
if (folder "Templates" of folder (aFolder as string) exists)
is false then
make new folder at aFolder with properties {name:"Templates"}
end if
end repeat
Thomas
Mr Tea wrote :
>
set theFolders to every folder of ShortFoundTemplateMatches
>
repeat with aFolder in theFolders
>
try
>
make new folder at aFolder with properties {name:"Templates"}
>
end try
>
end repeat
_______________________________________________
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.