Re: Timeout block question
Re: Timeout block question
- Subject: Re: Timeout block question
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 11 Feb 2009 12:09:52 -0800
- Thread-topic: Timeout block question
>
> Is there a failure option to the with timeout block?
>
I think you want something like this:
try
with timeout of 5 seconds
do shell script cmd
end timeout
on error errMsg number errNum
-->>>-1712 (Time out Error number)
if errNum = -1712 then
display dialog errMsg default answer errNum
else
--handle some other error
end if
end try
HTH,
Ed
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden