Re: Finder Timeout
Re: Finder Timeout
- Subject: Re: Finder Timeout
- From: yvan-koenig <email@hidden>
- Date: Fri, 18 Feb 2005 14:27:11 +0100
Le 18 févr. 2005 , à 14:08, Bob Cuilla a écrit :
I have a very simple script that does a backup from a mounted PC
volume to a hard drive on my Mac.
tell application "Finder"
set source to "PROJ FOLDER"
duplicate source to "20GB IDE-2:" with replacing
end tell
This script works just fine, however it takes several minutes to do
the whole thing. About two minutes into the script's action I get an
Applescript error
"Finder got an error: AppleEvent timed out"
The script completes correctly. Is there a way to suppress this
error?
Perhaps time to study the use of
with timeout [ of ] integer second[s]
[ statement ] …
end [ timeout ]
which give you the ability to adjust the … timeout value.
If your task may require five minutes, it would be useful to use
with timeout 300 (* will allow 5 x 60 seconds to acomplish the task *)
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