Re: Dismissing dialog box
Re: Dismissing dialog box
- Subject: Re: Dismissing dialog box
- From: Greg Turnquist <email@hidden>
- Date: Thu, 16 Aug 2001 08:07:23 -0500
>
Message: 6
>
Date: Wed, 15 Aug 2001 10:40:15 -0500
>
Subject: Dismissing dialog box
>
From: Chris Armour <email@hidden>
>
To: <email@hidden>
>
>
I have a script that toggles Location Manager locations. LM insists on
>
reporting its success with a dialog box. Is there any way to turn off user
>
interaction? Alternately, can I close this dialog box somehow? Thanks
On run
automate alerts after 0
tell application "Location Manager"
activate
set current location to (location "Work(Wired)")
quit
end tell
tell application "AirPort Scripting"
set power of card 1 to false
quit
end tell
automate alerts after -1
End run
This is from AkuaSweets.
automate alerts after: Timeout alerts that appear after the specified amount
of seconds. If the specified amount is 0, then the alerts are never shown.
If the amount is negative, then the timeout is deactivated.
automate alerts after integer -- The number of seconds after which
alerts are automatically 3OK29d.
[preferring button small integer] -- Prefer this button when
trying to first dismiss a dialog.
[pointer jumping boolean] -- Move the mouse to the default button?
[vertical bars boolean] -- Position the timer bars vertically?
[opposite bars boolean] -- Postion time bars on the opposite side
(right or bottom) of dialogs.
[movables boolean] -- Handle movable modals as well as modals.
[shortcuts boolean] -- Enable keyboard shortcuts (letters activate
button with letter closest to start).
[log boolean] -- Used to disable the default logging of alert
text.
[persistent log boolean] -- Log to the 3Alertia Log2 file?
Result: a list of string -- The accumulated alert text.
I've had no problems using this function fom AkuaSweets.
Greg