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

Creates syntactically valid old-style ASCII property lists #3

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

Conversation

Sesquipedalian
Copy link

This uses a combination of plutil and pl to create the ASCII format property list representation. First, plutil converts the property list to XML format for consumption by pl. Then pl converts the XML into old-style ASCII format. The output from pl is formatted identically to that of defaults.

This also adds a 'Convert to Pretty ASCII' command in order to preserve the existing functionality that uses pretty_plist.

This uses a combination of `plutil` and `pl` to create the ASCII format property list representation. First, `plutil` converts the property list to XML format for consumption by `pl`. Then `pl` converts the XML into old-style ASCII format. The output from `pl` is formatted identically to that of `defaults`.
This also adds a 'Convert to Pretty ASCII' command in order to preserve the existing functionality that uses `pretty_plist`.
@Sesquipedalian
Copy link
Author

Sesquipedalian commented Aug 11, 2020

FYI, Apple's man page for pl is somewhat misleading, in that it seems to indicate that pl can only read ASCII format property lists. In reality, it accepts input in both ASCII format and XML format.

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