Our company policy allows us to use the company laptop for personal matters, but of course, the proxy prevents us to visit some sites like Netflix etc. So I frequently disable the proxy – I'd like to have a shortcut or a more convenient way, than actually digging through the menu every time. I tried Automator, but it doesn't seem to recognize my click on the "Advanced…" tab in the settings, so it crashes at that step:
Is there a way I could set Automator or a keyboard shortcut up to disable the proxy easily? Thanks!
UPDATE:
I tried networksetup -setwebproxystate Wi-Fi off
, but it doesn't seem to do anything. After running the command, the proxy setting is still the same:
Best Answer
Instead of using Watch Me Do for scripting System Preferences UI interactions, add a Shell Script action with the following:
where ‘Wi-Fi’ is the name of the network service you are modifying, shown selected in the left sidebar when viewing the Network preference pane.