Pb converting plist to binary format
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
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
4 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0
- 0