• 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
Re: Web proxy settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web proxy settings?


  • Subject: Re: Web proxy settings?
  • From: John Baltutis <email@hidden>
  • Date: Wed, 13 Apr 2005 12:26:31 -0700

On 04/12/05, Axel Luttgens <email@hidden> wrote:
> Tim Mansour wrote:
>
>> Can anyone point me in the right direction please: how might I
>> determine the current web proxy server settings from within a script
>> (on OS X)?
>>
> Those settings seem to be saved into file:
>     /Library/Preferences/SystemConfiguration/preferences.plist
> by using a rather convoluted format (lots of indirections).
>
> Unfortunately, I can't manage to access its contents with the 'defaults'
> shell command.

This works in Panther:

do shell script "defaults read
/Library/Preferences/SystemConfiguration/preferences"

->"{
    CurrentSet = \"/Sets/0\";
    NetworkServices = {
        0 = {
            AppleTalk = {ConfigMethod = Node; \"__INACTIVE__\" = 1; };
            DNS = {};
            Ethernet = {MACAddress = \"xx:xx:Š\"; };
            IPv4 = {ConfigMethod = DHCP; };
            IPv6 = {ConfigMethod = Automatic; };
            Interface = {
                DeviceName = en0;
                Hardware = Ethernet;
                Type = Ethernet;
                UserDefinedName = \"Built-in Ethernet\";
            };

<snip>
 _______________________________________________
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: Web proxy settings?
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Image Events
  • Next by Date: Re: Insert text and paste command
  • Previous by thread: Re: Web proxy settings?
  • Next by thread: Re: Web proxy settings?
  • Index(es):
    • Date
    • Thread