• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Scripting Network Proxy settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Scripting Network Proxy settings
      • From: "John C. Welch" <email@hidden>
  • Prev by Date: Re: Palm Desk Top
  • Next by Date: iCal not saving passed events
  • Previous by thread: New Year's gift for Netscape users
  • Next by thread: Re: Scripting Network Proxy settings
  • Index(es):
    • Date
    • Thread