Skip to content

Imports binary property lists to XML format#4

Open
Sesquipedalian wants to merge 1 commit into
textmate:masterfrom
Sesquipedalian:import_xml
Open

Imports binary property lists to XML format#4
Sesquipedalian wants to merge 1 commit into
textmate:masterfrom
Sesquipedalian:import_xml

Conversation

@Sesquipedalian
Copy link
Copy Markdown

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.

1 participant