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


Click here to return to the 'Avoid the spinning 'wait' cursor after location switch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Avoid the spinning 'wait' cursor after location switch
Authored by: Nem on Dec 12, '06 11:30:24AM
Wouldn't one be able to use the SleepWatcher application to automate this?

I don't know the AppleScript commands to change network locations, but its got to be possible on sleep to switch to the "NULL" network and then back to "Automatic" (or maybe something else) on wake.

---
Nem W. Schlecht
http://geekmuse.net/

[ Reply to This | # ]

Avoid the spinning 'wait' cursor after location switch
Authored by: NovaScotian on Dec 13, '06 08:24:35AM

Sleep watcher could indeed be used. The AppleScript for this is really a shell script:

set loc_home to "home" -- or whatever
set loc_work to "work" -- the "other"

set current_location to do shell script "scselect 2>&1 | grep '^ ' 2>&1 | grep '*' | cut -f 2 -d '(' | cut -f 1 -d ')'"
if current_location is loc_home then
do shell script "scselect '" & loc_work & "'"
delay 0.5
else
do shell script "scselect '" & loc_home & "'"
delay 0.5
end if



[ Reply to This | # ]