Where's My Dialog?
Where's My Dialog?
- Subject: Where's My Dialog?
- From: Marconi <email@hidden>
- Date: Mon, 22 Feb 2010 06:41:38 -0700
I have a Server scan tool running to monitor
hosts on my LAN. When one of them goes down, I
have Server scan run a script to play a sound to
alert anyone within earshot.
There are three steps:
1) start playing the sound with looping, to make
it continuous until acknowledgement.
2) put up the dialog
3) when the dialog is acknowledged, stop playing the looping sound.
tell application "Play Sound"
play "Homer:Users:Marconi:Library:Sounds:MyAlert.aiff" with looping
end tell
set acknowledged to button returned of ¬
(display dialog ¬
("Check your hosts. One or more have dropped off the network!") ¬
buttons {"OK"} ¬
default button "OK")
tell application "Play Sound"
stop
quit
end tell
The problem is that I cannot find the dialog when
it comes up. The sound starts but the dialog,
which, logic tells me, has gotta be somewhere,
does not appear. It may be anywhere among layers
of windows from different applications.
I have tried quitting some of the running apps in
an effort to reveal the dialog but can not find
it. I have to use Activity Monitor to force quit
the "Play Sound" app.
What can I do to ensure that the dialog comes to the fore?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden