• 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
Accessing XML property list values with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing XML property list values with Applescript


  • Subject: Accessing XML property list values with Applescript
  • From: "Jerry Podhajsky" <email@hidden>
  • Date: Sun, 22 Dec 2002 10:57:13 -0600
  • Thread-topic: Accessing XML property list values with Applescript

I'm using Late Night Software's XML Tools to parse an XML file that contains
property lists that look something like:

<dict>
<key>Item 1</key>
<string>Moe</string>
<key>Item 2</key>
<string>Larry</string>
<key>Item 3</key>
<string>Curley</string>
<key>Number of Stooges</key>
<integer>3</integer>
</dict>

I'm able to recursively loop through the XML file and get key names and
values. However, I don't know how to say "get the value for Item 3 in this
particular <dict> construction".

Anyone got a code sample that will demonstrate how to pick out a value in a
property list based on the key? I'm sure it's simple, I just can't find any
reference on it anywhere.

Thanks in advance. Happy Holidays!

--
Jerry Podhajsky
_______________________________________________
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.

  • Prev by Date: Re: SE2 script snippet for Mouse Speed fails???
  • Next by Date: Possible bug in SE 2.0
  • Previous by thread: Re: Seasonal Poetry
  • Next by thread: Possible bug in SE 2.0
  • Index(es):
    • Date
    • Thread