-
-
Save sqlwwx/04f1d67c2716c9f93a7473f9be0e341c to your computer and use it in GitHub Desktop.
Automatic proxy configuration set pac file with applescript & shell script http://devework.com/automatic-proxy-configuration-pac-applescript.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "System Events" | |
| tell network preferences | |
| do shell script "scselect 'Dorm'" | |
| do shell script "sudo networksetup -setairportpower AirPort on" user name "用户名" password "密码" with administrator privileges | |
| do shell script "open /Applications/Shad**socksX.app" user name “用户名" password "密码" with administrator privileges | |
| end tell | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment