Scripting Network Proxy settings
Scripting Network Proxy settings
- Subject: Scripting Network Proxy settings
- From: Jake Hickok <email@hidden>
- Date: Tue, 4 Jan 2005 10:59:06 -0800
Title: Scripting Network Proxy
settings
I've been lurking here for a while. Beginner Applescripter but
learn fast.
Trying to set the proxy information for a given network location
in 10.3. Specifically the "Bypass Proxy Settings for these
Domains." I got pretty far with GUI scripting but couldn't exit
out of it properly, and GUI would be an ugly, not acceptable solution
in our environment anyway. I've also tried just creating a fixed
preference file and a script simply copies and replaces the file from
a file server, but the preference file is keyed to hostnames, MAC
addresses etc. obviously unique to each computer.
Is there an Applescript solution or a Unix command I'm missing
that can directly set this?
Thanks for any help!
Jake Hickok
For kicks, here's the GUI script using System Events
tell
application "System
Preferences"
activate
set current
pane to pane
"com.apple.preference.Network"
tell application "System Events"
tell
application process
"System Preferences"
click
button
"ConfigureĀ"
of group
1 of
window
"Network"
click radio
button
"Proxies"
of tab group
1 of
group 1 of window "Network"
set
value of text field
1 of
group 1 of tab group 1 of group 1
of window
"Network"
to
"bypasstheseaddresses"
click
button "Apply
Now" of
window
"Network"
end
tell
end
tell
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden