Re: display dialog and screen saver bug?
Re: display dialog and screen saver bug?
- Subject: Re: display dialog and screen saver bug?
- From: Jon Pugh <email@hidden>
- Date: Fri, 15 Feb 2002 15:30:12 -0800
At 2:47 PM -0700 2/15/02, James Reynolds wrote:
>
1). The "display dialog" command beeps. (I fixed this with "set volume 0" but why is it doing this?)
>
>
2). This does not work correctly: "display dialog text giving up after 10". After turning off the screensaver, the AppleScript halts with an "AppleEvent timed out." dialog. It should "give up" and continue to execute the script.
>
>
3). Placing "display dialog" in a try block catches the timeout error. Also, I could not find any way to control how long it took (giving up after <value> doesn't work at all). It always took 1 minute (probably the default AppleEvent timeout).
The ScriptRunner app is in front and it can't do UI. That's why it beeps and times out.
Use "activate" to bring another app (like the Finder) to the front and tell it to display the dialog.
That should solve all these problems.
Jon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.