• 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: Reading XML files (Philip Aker)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading XML files (Philip Aker)


  • Subject: Re: Reading XML files (Philip Aker)
  • From: Philip Aker <email@hidden>
  • Date: Thu, 29 Aug 2002 16:10:02 -0700

On Thursday, August 29, 2002, at 07:37 AM, Chris Janton wrote:

It is relatively easy to read user defaults from a plist file, but how do I do this from a generic XML file (plist or otherwise)? Of course just reading it as text is easy too, but I would like to access a dict entry directly without any text processing.

cp "path/to/x.xml" "path/to/x.plist"
defaults read "path/to/x.plist"

This example doesn't make sense to me...do you intend that we just copy an XML file to a file named x.plist and then somehow use defaults to read it?
Doesn't work for me...

Bit of a typo, the 'read' command doesn't need the ".plist" extension:

cp /System/Library/CoreServices/Resources/English.lproj/NetInfo.strings ~/Desktop/ninfo.plist
defaults read /Users/philip/Desktop/ninfo


I'm not sure what will happen with an arbitrary DTD. I've only used this on OS X system files.


Philip Aker
http://www.aker.ca
_______________________________________________
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.

References: 
 >Re: Reading XML files (Philip Aker) (From: Chris Janton <email@hidden>)

  • Prev by Date: Unicode messages received in Eudora
  • Next by Date: Re: Accessing Dictionary Contents (was: Re: AppleScript Try)
  • Previous by thread: Re: Reading XML files (Philip Aker)
  • Next by thread: Call javascript not working!
  • Index(es):
    • Date
    • Thread