When I change Location (via System Preferences -> Network or -> Location), I would like to be able to run a bash script (specifically, an ssh call to start a SOCKS proxy session).
Is that possible, and how can I do it?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
Not specifically that I know of... but there are apps that can be aware of your location and load different profiles based on that location and/or run other actions.
Have a look at MarcoPolo (http://www.symonds.id.au/marcopolo/) and Sidekick (http://oomphalot.com/sidekick/). MarcoPolo may not be up-to-date with the latest versions of OS X.. Sidekick looks a bit flashier so probably is more up-to-date but may not be free. But hopefully one of them does the trick for you!