Re: Don't understand timeout
Re: Don't understand timeout
- Subject: Re: Don't understand timeout
- From: Axel Luttgens <email@hidden>
- Date: Thu, 18 Aug 2011 22:58:37 +0200
(re-sending, since I prematurely sent the message while writing "caught" in the last sentence)
Le 18 août 2011 à 20:14, Robert Poland a écrit :
> Alex,
>
> Maybe I'm not following you.
>
> The problem I'm having is that the action does not stop after 2 seconds.
Hello Robert,
The "with timeout" block allows to define the maximum delay AppleScript will wait for the reply returned from a command *sent to an application*.
The default delay is two minutes.
Should that delay be exceeded, AppleScript raises an error, but of course doesn't have the ability to interrupt the action undertaken by the targeted application.
On the other hand, if the error isn't caught by an "on error" block, the script itself will halt.
HTH,
Axel
_______________________________________________
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