Please see license.txt for licensing information. The readme.txt covers version 1.1 -Overview: GetLocationName reads your current networking preferences to determine the Location Name (as selected by the user). This is probably most useful if you are writing a shell script to do different things based on your selected location. -Installation: Copy the GetLocationName program to someplace in your path (like /usr/local/bin) You can use this to install it (need to be root, I recommend using sudo) /usr/bin/install -c -m 0755 -s GetLocationName /usr/local/bin/GetLocationName (You can name it whatever you want) Note, the binary is in GetLocationName/build/GetLocationName if you are building from source. -Sample execution: % /usr/local/bin/GetLocationName Automatic It's pretty simple, look at the source. I'm using more temp variables than needed, for clarity. -Example shell script: See example.sh. You might put this into, for instance, your shell dotfiles to set a web proxy or file server info or who knows what. -Bugs: None that I'm aware of :) -Todo: Might be nice to build this into a generic plist-walking program, since it already has a call to traverse "/Sets/" dynamically.