Convert Apple .plist file to from XML / binary


/ Published in: Bash
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.