Closed revolter closed 9 years ago
I will need an example plist if I am to resolve this. Can you provide one?
If what you are using is a binary form of the plist, this does not currently support binary format, just XML. If this is the case, then this is not a bug, but a feature request.
I could add a call to the an OSX native tool that can parse the binary to XML, but it would only be OSX dependent and would not work on Windows or Linux. I would have to write my own binary plist parser or find a python library to do it if I planned on supporting other platforms (not sure if I would go that far).
Based on a little research, I am guessing you are trying to convert a binary plist opposed to the XML format; see https://discussions.apple.com/thread/499892. So with that info, this is now more a feature request.
Sorry for late reply, it is indeed a binary plist.
Okay, I think I can handle this. I have an idea of how to do this.
Good luck! Let me know if you want some help with it, and if I can, I'll happily help you.
No worries, it's pretty straight forward. I'm just grabbing the latest plistlib from python 3.4. Just requires very minor modifications to work in sublime's 3.3 python.
Tip of master branch should now support binary plists. More testing still needs to be done before I release it though.
Note that when reading a BPLIST (binary PLIST), the encoding must be Hexadecimal
or the view must be a file that exists on disk so that the raw, un-encoded data can be acquired as encoding can lose some of the data. The plugin will abort conversion of BPLISTs if the conditions are not met.
Any idea how to install it on OSX without Package Manager?
The easiest way is to install the Github app, and then click the Clone in Desktop
button on the repo homepage, and then select the Packages folder as the place to clone it. You can also clone the repo from command line if you are familiar with git.
When playing with it, keep in mind that Package Control will no longer keep you up to date if you manually check it out. At any time you should be able to delete it and reinstall via Package Control.
New release has BPLIST support.
Sorry, I didn't have time to test it before. But it does work and it will make my life easier, thanks!
Glad it's working for you. Turned out to be much easier than I thought.
Whenever I try to convert from PLIST to JSON I get this in the console:
The plist file content starts with:
if it helps you.