Pb converting plist to binary format
I have an XML plist generated by a perl program that I would like to convert to binary plist in a shell script. So I'm using the dedicated "plutil" program from the command line.
Alas it won't convert the plist to binary, leaving it in XML format wether I try :
plutil - convert binary1 fuel.plist
or
plutil -convert binary1 -o fuel2.plist fuel.plist
So I try this :
plutil -convert binary1 -o - fuel.plist
to send the result to the STDOUT.
Bingo, the output is definitely a binary plist as it starts with the "bplist" signature and is followed by lots of non human-readable characters.
But ... when I tried this :
plutil -convert binary1 -o - fuel.plist > fuel2.plist
Istill get that XML file !!
I tried with different filenames like fuel.db for the output in case plutil would reserve the .plist extension to XML format. I also validated the input file with plutil.
This is driving me crazy ... There must be something, but what ?
Any help appreciated 😉
Regards
Phil
MacPro 2x23" + more, Mac OS X (10.6.2), iPhone3GS 32Gb 3.1.3, iTouch v2 3.1.2 Pwnd