Location Watcher for OS X

So this morning in the office we were discussing the hassle of swapping out host files based on whether we were in the office or on the outside. I said “You know if I wasn’t so lazy I’d write an AppleScript to do it for me when the network changed”.

This evening I went looking to see if somebody had already do it for me and I found this LocationChanger which was very close to what I wanted. But…

I didn’t want to be limited to only 2 locations (work and home) and I wanted it to be a little easier to manage what happened for each location. So I started with Onne’s code and ended up with Location Watcher.

Enjoy it. Comments and suggestions are always welcome.