Re: Web proxy settings?
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