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: 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 | # ]