1

When I change Location (via System Preferences -> Network or  -> Location), I would like to be able to run a bash script (specifically, an call to start a SOCKS proxy session).

Is that possible, and how can I do it?

1

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!

2
  • Also ControlPlane controlplaneapp.com – Gilby Sep 15 '15 at 23:07
  • MarcoPolo is still unsupported 2.5 years from I asked this (last updated in 07). And it looks like Sidekick hasn't been updated in 4 years, either – warren Mar 21 '18 at 22:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .