• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: With Timeout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >With Timeout (From: email@hidden)

  • Prev by Date: Re: How do I escape a question mark (?)
  • Next by Date: RE: Regarding Power macG4 (DSP/Dual Processors)
  • Previous by thread: Re: With Timeout
  • Next by thread: Re: Quark style and character sheets -- is "normal" always spec number 1?
  • Index(es):
    • Date
    • Thread