• 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: Jean-Baptiste LE STANG <email@hidden>
  • Date: Mon, 11 Aug 2003 23:16:13 +0200

have a look at 'defaults' , that will help you to modify easily '.plist' files

@+ JB


Le lundi, 11 ao{ 2003, ` 23:08 Europe/Paris, Jeramey Valley a icrit :

I need to modify one value in an xml file, and save the updated file. So far, I don't see an easy way to do this, but perhaps I'm missing something.

Specifically, I need to modify the user id (authname) in the system preferences.xml file. I need non-Admin users to be able to do this so they can enter their own dial up information while on the road. After looking at the issue from several angles, modifying the file directly appears to be my best choice.

So, I figure reading in the pref file, finding that value (see below) and writing out the file would be my best choice. I'm having difficulty in coming up with a clean way of performing this task.

<key>AuthName</key>
<string>MyUserID</string>

Alternatively, I'm not afraid to use the terminal in conjunction with other tools/functions. However, I have not found a means to do this.

Any insights 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.
_______________________________________________
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: Jeramey Valley <email@hidden>
References: 
 >modify xml file (From: Jeramey Valley <email@hidden>)

  • Prev by Date: modify xml file
  • Next by Date: Re: Execute a PDF-Service
  • Previous by thread: modify xml file
  • Next by thread: Re: modify xml file
  • Index(es):
    • Date
    • Thread