An applescript to toggle the SOCKS proxy checkbox in System Preferences / Network / Proxies.