1
lanceli 2012-08-26 09:26:02 +08:00
你用什么工具切换的,我是直接terminal里sudo,这样在terminal输入密码,不弹窗了。没找到禁掉的方法
|
2
aerolqr 2012-08-29 21:23:49 +08:00 2
用AppleScript,这是我用来切换GoAgent代理的,更改相应的代理地址和端口,*****相应的填上用户名和密码就可以用了
do shell script "networksetup -setwebproxy Wi-Fi 127.0.0.1 8087" user name "*****" password "*****" with administrator privileges do shell script "networksetup -setsecurewebproxy Wi-Fi 127.0.0.1 8087" user name "*****" password "*****" with administrator privileges do shell script "networksetup -setwebproxystate Wi-Fi on" user name "*****" password "*****" with administrator privileges do shell script "networksetup -setsecurewebproxystate Wi-Fi on" user name "*****" password "*****" with administrator privileges |
3
ytzong OP @lanceli 我用的 Automator 里的 Shell 脚本导出的应用程序
networksetup -setautoproxyurl Wi-Fi file://localhost/Applications/Safari.app/Contents/Resources/Pac/my.pac @erolqr 感谢,成功了 do shell script "networksetup -setautoproxyurl Wi-Fi file://localhost/Applications/Safari.app/Contents/Resources/Pac/my.pac" user name "***" password "***" with administrator privileges |
4
hyanwang 2012-08-30 02:18:33 +08:00
把左下角的鎖打開就不用輸入了
|
6
hyanwang 2012-08-31 02:21:22 +08:00
e....为什么不用firefox这样就不用切换系统代理
|
8
hyanwang 2012-08-31 11:12:59 +08:00
偶一个叫apple2pac的,可以设立规则
|