Re: Apple event timed out
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]