Re: Reading XML files (Philip Aker)
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.