• 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: Apple event timed out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple event timed out


  • Subject: Re: Apple event timed out
  • From: "Marc K. Myers" <email@hidden>
  • Date: Thu, 11 Jan 2001 15:13:21 -0500
  • Organization: [very little]

Peter Mathiessen wrote:
> Date: Thu, 11 Jan 2001 10:38:46 +0100
> Subject: Apple event timed out
> From: Peter Mathiessen <email@hidden>
> To: <email@hidden>
>
> Hi,
>
> How to avoid Apple event timed out when displaying a dialog and the user
> dont click the "OK" button in time?
>
> The script:
>
> tell application "Finder"
> activate
> display dialog "Done!" & return buttons {"OK"} default button "OK"
> end tell

Timeouts occur when AppleScript tells an application to do something and
it takes more than a certain number of seconds to come back with a
response. For dialogs, the solution is simple: don't have the
application display the dialog, get AppleScript itself to do it.

tell me
activate
display dialog "Done!"
end tell

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[1/11/01 3:13:04 PM]


  • Prev by Date: Re: Stay Open
  • Next by Date: Just one question
  • Previous by thread: extracting useful data from ANPA resources
  • Next by thread: Just one question
  • Index(es):
    • Date
    • Thread