• 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: Choose * ... with timeout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Choose * ... with timeout? (From: David Crowe <email@hidden>)

  • Prev by Date: Choose * ... with timeout?
  • Next by Date: Excel 2004 & text color
  • Previous by thread: Choose * ... with timeout?
  • Next by thread: Re: Choose * ... with timeout?
  • Index(es):
    • Date
    • Thread