Skip to content

Creates syntactically valid old-style ASCII property lists#3

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

Creates syntactically valid old-style ASCII property lists#3
Sesquipedalian wants to merge 1 commit into
textmate:masterfrom
Sesquipedalian:convert_to_ascii

Conversation

@Sesquipedalian
Copy link
Copy Markdown

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
Copy Markdown
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.

1 participant