Posted By

stiobhart on 10/26/11


edit xml osx apple binary convert plist preference

Versions (?)

Convert Apple .plist file to from XML / binary

 / Published in: Bash

A pair of handy terminal commands for converting Apple .plist preference files from binary to XML format [allowing for easy editing with a text editor] and then back to binary again, afterwards.

  1. # Let's use the Finder's prefs file as an example
  3. # Convert it to XML format
  4. plutil -convert xml1 ~/Library/Preferences/
  7. # After editing, convert it back
  8. plutil -convert binary1 ~/Library/Preferences/
  10. # Restart the Finder
  11. killall Finder

Report this snippet  

You need to login to post a comment.