I've searched high and low for information on how to set the network location and select font smoothing (Appearance Pref. Pane) with Applescript.
I'm hoping to use something simple with osascript so I can wrap a shell script around the command, such as:
#!/bin/sh
IP=`ifconfig -a | grep broadcast | awk '{print $2}'`
OCT=`echo $IP | awk -F. '{print $1}'`
if [ $OCT = 131 ]; then
osascript -e 'set volume 0';
osascript -e 'set **Network Location** to "Work"';
else
osascript -e 'set volume 7';
osascript -e 'set **Network Location** to "Home"';
fi