Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imports binary property lists to XML format #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sesquipedalian
Copy link

This re-implements a (slightly simplified version of) the changes to "Import Binary Property List.tmCommand" that were contained in the now obsolete #2.

With these changes, binary property list files will be presented using Apple's standard XML format, rather than using pretty_print's idiosyncratic variant of the ASCII format.

This is important for the sake of protecting user data. If the user saves the XML representation back to disk, thereby overwriting the binary version, no data will be lost. In contrast, if the user accidentally saves the output from pretty_plist to disk, the property list file will mostly likely be rendered unreadable.

In the unlikely event that plutil is unavailable, the import process falls back to the previous behaviour.

Falls back to pretty_plist if something goes wrong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant