Re: Scripting the Location Manager
Re: Scripting the Location Manager
- Subject: Re: Scripting the Location Manager
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 24 Nov 2000 20:48:07 -0800
On 11/24/00 8:35 PM, "Alazel Acheson" <email@hidden> wrote:
>
I'm having trouble setting up a script to automatically change location
>
manager settings. I can get the current location, but can't figure out how
>
to set it. I'm using MacOS 8.6
>
>
Tell application "Location Manager"
>
set currentLocation to get current location -- works!
>
set currentLocation to "aLocation" -- doesn't work. How to I specify a
>
location by name?
>
End tell
set current location to location "aLocation"
-- to set the real location, or
set currentLocation to location "aLocation"
to "specify" the location by name all right, but it doesn't do anything but
redefine the variable. (I'm not sure what you meant by "specify", so I'm
giving both answers, but I expect you actually want to set the real
location, in which my first answer is what you're looking for.)
All you were doing was re-setting your variable (and to a string name, not
to a location), rather than setting the actual thing. If you want anything
to happen here, you need to set the application property 'current location',
not your variable.
--
Paul Berkowitz