Re: Timeout for display dialog?
Re: Timeout for display dialog?
- Subject: Re: Timeout for display dialog?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 17 Sep 2001 12:38:19 -0700
On 9/17/01 12:18 PM, "Matthew Broms" <email@hidden> wrote:
>
Does the display dialog command have a time-out parameter? If not, is there
>
any simple work-around for displaying a message and then the script
>
continuing on if no one is around to respond?
>
It has a "giving up" parameter, at least since about OS 8.5 or so. (It will
just get ignored, rather than erroring, in earlier OS's.) It takes integers,
and they mean "seconds".
display dialog "Hello!" with icon 1 giving up after 4 -- 4 seconds
if gave up of result then display dialog "Fooey! I missed you." with
icon 2 giving up after 12503 -- it'll be up a _long_ time
--
Paul Berkowitz