Re: modify xml file
Re: modify xml file
- Subject: Re: modify xml file
- From: Steven Angier <email@hidden>
- Date: Wed, 13 Aug 2003 09:17:24 +1000
On Wednesday, August 13, 2003, at 02:20 AM, Jeramey Valley wrote:
This gets me very close to a solutions using Defaults. From my very
limited understanding, the key value I'm trying to get at is buried
(embedded) within a couple deeper arrays(?). Changing the xml file to
a plist, I can get defaults to read the file (awesome).
I'm now stumbling while getting it to write a specific value. Not sure
if I have to read out the whole array (correct terminology?), make
changes and then write that chunk back or what. In the file, the data
I'm going for is under AuthName, which is under PPP, under 2, under
Network Services. A larger concern is that the "2" may vary from
system to system (it represents the network configurations on a
machine and some of the machines this is targeted at will have 2 or 3
network configs).
I realize this is getting a bit OT from applescript, but it's key to a
script I'm putting together. Further assistance appreciated.
I'm not sure if just editing a plist or other config document will do
what you want. The public interface to these settings is a set of SCF
calls. Simply editing a config file and restarting a daemon or two
might work, but it isn't the "supported" way to go.
For what its worth, we are writing a scriptable application for
changing system configurations via AppleScript. Though it is still in
development, it currently allows setting and getting of properties of
ports and configurations. If there is enough interest, we might start a
public seed program.
Good luck.
Steven Angier
Macscript.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.