Re: Choose * ... with timeout?
Re: Choose * ... with timeout?
- Subject: Re: Choose * ... with timeout?
- From: David Crowe <email@hidden>
- Date: Sun, 10 Apr 2005 09:00:00 -0600
Axel;
You suggestion is definitely a solution, but unfortunately it
introduces another step in the process for the user, something I was
trying to avoid.
I noticed that even the Satimage versions of the choose dialogs
doesn't have a timeout. It's too bad.
- David Crowe
------------------------------
Message: 9
Date: Sat, 09 Apr 2005 11:55:00 +0200
From: Axel Luttgens <email@hidden>
Subject: Re: Choose * ... with timeout?
To: AppleScript Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
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