Apple - How do I edit a .plist file?
If the plist file is in the XML format, you can edit it in any text editor like TextEdit. If the plist file is in the binary format, you can convert it to XML first by running:
plutil -convert xml1 file.plist
If you want to go back to binary format after editing:
plutil -convert binary1 file.plist
If you have Xcode 4.3 or later, you can use it to edit property lists in a graphical editor like this:
Xcode 4.2 and earlier came with a separate application for editing property lists (/Developer/Applications/Utilities/Property List Editor.app/
).
A PList file, like Mankoff said, is just a specially formatted XML file, so you can actually edit and create them in a program like TextEdit.
Because of the specific nature of PLists to Development, however, using a special program like Xcode
or Property List Editor
becomes a much more fruitful endeavor. This is because it not only automatically formats the XML code for you, but it will actually translate the key identifiers and layers into readable words, and also for some values it will provide a drop-down menu to fill in the correct responses. Especially when dealing with iPhone plists, when multiple runtime variables can be set using the Plist, easily creating new fields and knowing what to put in them makes it so much easier.
You can get bot Xcode and PList Editor from the Apple Developer website http://developer.apple.com for free by downloading the latest Xcode release.
A fine program like TextWrangler can edit binary .plist
files without first converting them using Terminal. Simply open the file like you would any other (i.e. drag-and-drop on the program icon, or the File open dialog, or Open With in the Finder or...)