Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OSX Property List (.plist) parser

20 views
Skip to first unread message

daneyul

unread,
Nov 13, 2007, 5:46:41 PM11/13/07
to
Before I do it myself, I figured I'd ask if anyone knows of a pure tcl
parser for binary Mac OSX .plist files out there?


Thanks!

-Daniel

Steve Ball

unread,
Nov 13, 2007, 7:47:53 PM11/13/07
to
.plist files appear to be well-formed XML, so TclXML/Tcl should do the
job just fine.

HTHs,
Steve Ball

Randolf Schultz

unread,
Nov 14, 2007, 3:42:21 AM11/14/07
to
Steve Ball <Steve...@explain.com.au> wrote:
> .plist files appear to be well-formed XML, so TclXML/Tcl should do the
> job just fine.

Nope, there are also binary .plist-files. Especially those more
closely related to the operating system.

best regards,
Randolf,
--
http://www.ayam3d.org/ Ayam, go parametric NURBS!

daneyul

unread,
Nov 14, 2007, 2:45:17 PM11/14/07
to

>
> Nope, there are also binary .plist-files. Especially those more
> closely related to the operating system.

Yep. I've used tclxml for the straight xml ones, but now I have some
binary ones to deal with and didn't want to reinvent the wheel (I did
google for it but came up empty).

Thanks,

-Daniel

daneyul

unread,
Nov 14, 2007, 3:01:29 PM11/14/07
to
I just found this conversion utility native on the Mac, so it will
probably do the trick if no tcl parser exists for the binary versions.

"There is a command line utility called plutil that can convert back
and forth between the two formats. You can convert the .plist file you
want to edit to XML format, edit it in TextEdit, then convert back to
binary for use. To convert a binary .plist file to XML format for
editing, type this in the Terminal:

plutil -convert xml1 some_file.plist

To convert an XML .plist file to binary for use:

plutil -convert binary1 some_other_file.plist"

0 new messages