Re: With Timeout
Re: With Timeout
- Subject: Re: With Timeout
- From: Michael Grant <email@hidden>
- Date: Mon, 05 Aug 2002 13:48:57 -0500
On 8/5/02 1:08 PM, "email@hidden" <email@hidden> wrote:
>
Has with timeout ever worked?
>
I'm trying it on 10.2, 10.1, and 9.2, and I can't seem to get the following
>
to work:
>
>
with timeout 10 seconds
>
display dialog "Text" default anser "reply"
>
end timeout
>
>
The dialog comes up and sits there forever. I can't get it to error out
>
after the specified 10 seconds.
Is this what you're looking for?
display dialog "How do you like my cool dialog?" default answer "Groovy,
man!" giving up after 10
This returns a "gave up" boolean as part of the result.
timeout is for giving lengthy operations enough time to complete before
continuing with the rest of the script.
Michael
--
May God grant me the celerity to reject the mail I cannot manage,
the verbiage to answer the mail I can, and the filter rules to know the
difference.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.