This file contains 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 |