Re: Timeout Not Working As Expected
Re: Timeout Not Working As Expected
- Subject: Re: Timeout Not Working As Expected
- From: Axel Luttgens <email@hidden>
- Date: Wed, 18 Mar 2015 18:16:24 +0100
Le 18 mars 2015 à 04:01, S. J. Cunningham a écrit :
> This never times out:
>
> with timeout of 5 seconds
> do shell script "/Applications/Firefox.app/Contents/MacOS/firefox-bin imacros://run/?m=Current.iim"
> end timeout
Hello,
The with timeout statement controls how long AppleScript waits a reply for a command that has been sent to an application.
In the above, there is just a command ('do shell script'), no command sent to an application (as it would have been the case with 'tell application "Firefox" to ...').
It is a bit as if you had tried:
with timeout of 1 second
delay 10
end timeout
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