Posted By

stiobhart on 10/26/11


Tagged

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
  2.  
  3. # Convert it to XML format
  4. plutil -convert xml1 ~/Library/Preferences/com.apple.finder.plist
  5.  
  6.  
  7. # After editing, convert it back
  8. plutil -convert binary1 ~/Library/Preferences/com.apple.finder.plist
  9.  
  10. # Restart the Finder
  11. killall Finder

Report this snippet  

You need to login to post a comment.