Re: Dismissing dialog box (location manager)
Re: Dismissing dialog box (location manager)
- Subject: Re: Dismissing dialog box (location manager)
- From: billp <email@hidden>
- Date: Wed, 23 Jan 2002 17:22:56 -0600
Greg,
I cannot make your script compile.
The word "alerts" gets highlighted in Script Editor.
Does it require a scripting addition?
I need to automate the interaction with the dialog box, and,
contrary to another user's statement about the box going
away by itself after a few minutes, it does not.
Thanks!
Bill Planey
>
> 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