Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Automatically set location based on connected SSID' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically set location based on connected SSID
Authored by: kholburn on May 17, '06 08:48:45PM
Why is this line which runs a shell script:

do shell script "/usr/sbin/scselect '" & CurrentLocation & "'"
better than the one line of applescript ?:

set CurrentLocation to "Automatic"


[ Reply to This | # ]
Automatically set location based on connected SSID
Authored by: GaelicWizard on May 18, '06 07:17:01AM

The two lines you mention do not do the same thing. The shell script changes the current location, whereas the applescript line you mention only sets a variable. That variable does not actually change the location. The last line of the original script changes the location, and you'll notice that its quite a bit longer and requires that "Access for Assistive Devices" be turned on in Universal Access.

JP

---
Pell



[ Reply to This | # ]