• 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: display dialog and screen saver bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display dialog and screen saver bug?


  • Subject: Re: display dialog and screen saver bug?
  • From: James Reynolds <email@hidden>
  • Date: Fri, 15 Feb 2002 17:27:11 -0700

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.

Great! It works:

tell application "Finder"
activate
display dialog "text" giving up after 1
end tell
say "hi"

Even this worked:

tell application "test" -- this file is named test
activate
display dialog "text" giving up after 1
end tell
say "hi"

Even this worked:

tell me
activate
display dialog "text" giving up after 1
end tell
say "hi"

I tried "tell me" before but it didn't work! I don't know what is different now...

--

Thanks,

James Reynolds
University of Utah
Student Computing Labs
email@hidden
email@hidden
801-585-9811
_______________________________________________
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.

References: 
 >display dialog and screen saver bug? (From: James Reynolds <email@hidden>)
 >Re: display dialog and screen saver bug? (From: Jon Pugh <email@hidden>)

  • Prev by Date: Re: 1.82b download?
  • Next by Date: Re: "on run" & "on re-run"
  • Previous by thread: Re: display dialog and screen saver bug?
  • Next by thread: Re: loops [naming variables]
  • Index(es):
    • Date
    • Thread