Re: modify xml file
Re: modify xml file
- Subject: Re: modify xml file
- From: Lewis Butler <email@hidden>
- Date: Wed, 13 Aug 2003 17:44:01 -0600
On Tuesday, 12 August 2003, at 10:20, Jeramey Valley wrote:
At 10:00 +0200 8/12/03, julifos wrote:
Maybe it's an *extension* problem; you can edit a *valid* plist, but
not a
xml. So, you can duplicate the file, work with it, then rename back
the
plist to xml.
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).
You're trying to use a screwdriver to pound nails. You have a
perfectly good hammer sitting right next to you. (man defaults)
do shell script "defaults write thefile thekey thevalue"
--
Do you believe that there's someone up above, and does he have a
timetable directing acts of love?
_______________________________________________
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.