How to check/uncheck proxies checkbox in System Preferences/Network

If you happen to have Script Debugger, you could use this method: