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


Click here to return to the 'Use an enhanced location changer script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use an enhanced location changer script
Authored by: joewiz on Aug 07, '06 08:14:36AM

This is a great idea - especially the default printer change. It would be one thing if switching printers was a snappy process in OS X, but on my 1.33 GHz G4 iBook, switching printer is sloooow.

I haven't installed the script yet but am wondering about 2 things:

1. The script requires you to set: "SETTLETIME: the amount of time to wait before running the script again" - what is the recommended short-ish time setting that wouldn't adversely affect performance?

2. Could this script also modify volume level? So at one location (home) the speakers are set to half, and at another (work) they're set close to zero?



[ Reply to This | # ]
Use an enhanced location changer script
Authored by: gghose on Aug 10, '06 11:35:59PM

1. For me the value in the script works fine SETTLETIME=10. But mileage may vary, so simply play with it for your networking environments and see what works.

2. OK, here's what to do for volume changes. Right above the line that reads "osascript /tmp/ascript"

insert the following

#System Volume
if [ -n $VOLUME ]; then
PROGRAM='"System Events"'
echo tell application $PROGRAM to set volume $VOLUME >> /tmp/ascript
fi

Then if you want a location to change the volume simply define VOLUME in the location specific settings, e.g. VOLUME=0 will mute your machine.

If VOLUME is not defined for a particular location, no change will be made.



[ Reply to This | # ]