• 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
Adding a property value to a plist file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a property value to a plist file


  • Subject: Adding a property value to a plist file
  • From: "Jesse Almanrode - JA Computing" <email@hidden>
  • Date: Tue, 11 Jul 2006 18:15:46 -0600

Ok, here is an easy one. I have done this before but for the life of
me cannot find my snippet of code that does it anywhere.

I have an plist file that I am planning to read from and write to
using AppleScript. My problem here lies in how do I create a new
property in the plist file (making the plist longer).

My plist file currently looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
	<key>ARYLib1</key>
	<array>
		<string>Some String</string>
		<string>Some other String</string>
		<false/>
	</array>
</dict>
</plist>

So... I would be creating new ARYLib properties and increment them as
I do.  Also, if someone would also give me the snippet to remove
properties from a plist file that would be nice too (I am sure I can
figure it out but hey, why re-invent the wheel if you don't have to?).

Any takers?

--
Jesse Almanrode
Webmaster/Systems Administrator
www.jacomputing.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Adding a property value to a plist file
      • From: Emmanuel <email@hidden>
    • Re: Adding a property value to a plist file
      • From: dev_sleidy <email@hidden>
  • Prev by Date: Re: iTunes programming question
  • Next by Date: Re: Adding a property value to a plist file
  • Previous by thread: (no subject)
  • Next by thread: Re: Adding a property value to a plist file
  • Index(es):
    • Date
    • Thread