Re: Binary Format plist
Re: Binary Format plist
- Subject: Re: Binary Format plist
- From: Peter Bierman <email@hidden>
- Date: Tue, 28 Jun 2005 11:33:01 -0700
At 8:30 AM -0700 6/28/05, Eric Zimmerman wrote:
Stéphane Sudre wrote:
This is certainly possible with a postflight
script. I would not go with a full shell or
applescript solution but use an additional
binary. As this would allow to use the Open
Directory API to get the list of users and
their Home folder location and to use
CoreFoundation or Foundation API to work with
the Property List files that are probably being
used (and since Apple is moving to Binary
plist, I have some doubt it's possible to edit
them from a shell script).
The part about plist moving to binary is really
sad. I use ANT to build all of my plists
manually to automate my build process. Changing
over to a binary format will make it much more
difficult for me to support the Mac platform. I
hope they maintain backwards compatibility or
change their minds.
The text XML plist format is transparently
supported, and you can switch between the two
using the 'plutil' command.
% plutil -convert xml1 /path/to/plist
Modifying an existing plist has always been
risky, since you're editing another program's
data structures. It's much better to use (or
request via a bug) an API.
-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden