• 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: Scriptable Network Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scriptable Network Preferences


  • Subject: Re: Scriptable Network Preferences
  • From: Quinn <email@hidden>
  • Date: Mon, 26 Nov 2007 10:11:35 +0000

At 18:50 +0000 25/11/07, email@hidden wrote:
Would it be correct to assume that the newly scriptable network preferences features of Leopard are meant to provide read-only access to existing configurations and that there is still no Apple sanctioned method for creating new ones aside from mucking around with the preferences files directly?

Please don't mess with preference files directly, especially the networking ones.


There's been an supported API for manipulating network preferences since 10.1 (the SystemConfiguration framework). However, I seems that you're working in the scripting space, and thus this C-based API is inappropriate.

One option, new in 10.5, is the <x-man-page://8/networksetup> tool. You could run this from AppleScript using "do shell script".

With regards the Network Preferences suite in "System Events", looking at the dictionary it seems that this should support modification. I did some quick tests and couldn't get it to work. I'm curious about this myself, so I've asked the engineer at Apple who works on this stuff. I'll post a follow up if I get any joy.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Scriptable Network Preferences
      • From: Nathan Duran <email@hidden>
References: 
 >Scriptable Network Preferences (From: email@hidden)

  • Prev by Date: Scriptable Network Preferences
  • Next by Date: Re: Upgrading a kext
  • Previous by thread: Scriptable Network Preferences
  • Next by thread: Re: Scriptable Network Preferences
  • Index(es):
    • Date
    • Thread