pList compression

Ken Ray kray at sonsothunder.com
Wed Oct 3 15:04:51 EDT 2007


On Wed, 3 Oct 2007 13:01:40 -0400, Todd Higgins wrote:

> I'm not sure if this is what you are looking for, but some plist 
> files are in a binary format instead of just raw XML.  Apple has 
> provided a command line utility that allows you to convert between 
> the two formats.
> 
> NAME
>      plutil -- property list utility
> 
> SYNOPSIS
>      plutil [command_option] [other_options] file
>              ...
> 
> DESCRIPTION
>      plutil can be used to check the syntax of property list files, 
> or convert
>      a plist file from one format to another.

Right... the formats are "xml1" and "binary1". So for example to 
convert a binary pList to XML, do this:

  plutil -convert xml1 <pathToPList>

and to convert it back:

  plutil -convert binary1 <pathToPList>

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list