Re: Basic script blues ;-)
Re: Basic script blues ;-)
- Subject: Re: Basic script blues ;-)
- From: yvan-koenig <email@hidden>
- Date: Sun, 27 Mar 2005 21:06:57 +0200
Le 27 mars 2005 , à 20:54, Bernard Azancot a écrit :
…
One way of rewriting this would be to:
try
tell application "Finder"
set Folder1 to folder ("IBM 01:Users:parents:Desktop:Foo:")
end tell
on error
-- we get here if the above line fails
make new folder at folder "IBM 01:Users:parents:Desktop:Foo:" with
properties {name:"Folder2"}
end try
This version of the script does not compile...
tell application "Finder" was missing in the error handler.
try
tell application "Finder"
set Folder1 to folder ("IBM 01:Users:parents:Desktop:Foo:")
end tell
on error
-- we get here if the above line fails
tell application "Finder"
make new folder at folder "IBM 01:Users:parents:Desktop:Foo:" with
properties {name:"Folder2"}
end tell
end try
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden