Re: Choose * ... with timeout?
Re: Choose * ... with timeout?
- Subject: Re: Choose * ... with timeout?
- From: Axel Luttgens <email@hidden>
- Date: Sat, 09 Apr 2005 11:55:00 +0200
David Crowe wrote:
Is there a way to initiate a "choose" dialog (e.g. choose file, choose
from list) with a timeout?
Strictly speaking, no, as those commands do not provide an appropriate
argument.
Putting a "with timeout of 60 seconds...end with" around the statement
doesn't seem to do any good.
That's normal, as a "with timeout..." is intended to trap the lack of an
*application* response.
But perhaps you could benefit from the "giving up after ..." argument of
the "display dialog" command.
Something around following code:
try
set Reply to display dialog "Choose a file?" giving up after 10
if not gave up of Reply and button returned of Reply is "OK" then
choose file
end if
end try
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:
This email sent to email@hidden