• 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: modify xml file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modify xml file


  • Subject: Re: modify xml file
  • From: Jeramey Valley <email@hidden>
  • Date: Tue, 12 Aug 2003 12:20:06 -0400

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).

I realize this is getting a bit OT from applescript, but it's key to a script I'm putting together. Further assistance appreciated.
--

Regards,

Jeramey Valley
email@hidden
Network Administrator
H. H. Dow High School
Midland Public Schools
_______________________________________________
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.

  • Follow-Ups:
    • Re: modify xml file
      • From: Lewis Butler <email@hidden>
    • Re: modify xml file
      • From: Steven Angier <email@hidden>
References: 
 >Re: modify xml file (From: julifos <email@hidden>)

  • Prev by Date: Re: AppleScript --> HTML
  • Next by Date: Applescript in HTML
  • Previous by thread: Re: modify xml file
  • Next by thread: Re: modify xml file
  • Index(es):
    • Date
    • Thread