Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

What's the best application to open and edit a plist file ?

share|improve this question
    
wasn't me but someone voted to close... I think if you just changed your question to be more specific about what you're trying to do it wouldn't get any 'subjective' votes. –  Robert S Ciaccio Dec 24 '10 at 21:24
4  
Voting to close without commenting? Way to go, team! –  Philip Regan Dec 25 '10 at 11:01
    
This is a good question. Several times, I have wanted to open a .plist file, but even with downloading an app it looked (very) difficult, so I gave up. –  Nicolas Barbulesco Mar 30 at 0:39
add comment

4 Answers

up vote 14 down vote accepted

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.

share|improve this answer
1  
IIRC some plist are compressed though, which makes them unopenable in a text editor without decoding them first. Apple tools do that automatically though, and back again. –  Lloeki Aug 9 '11 at 7:59
    
Well perfect, more reasons to use Xcode 4! –  SeniorShizzle Sep 29 '11 at 5:13
    
If only… ! But no, some .plist files are binary or something like this, and TextEdit is not enough for them. –  Nicolas Barbulesco Mar 30 at 0:42
add comment

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 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/).

share|improve this answer
add comment

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...)

share|improve this answer
    
But the values are unreadable. –  Nicolas Barbulesco Mar 30 at 0:46
add comment

Since Apple got rid of the GUI property list editor, XCode is the best free option if you want to be sure of the result.

There are some gotcha's using a generic code editor to edit plist files. Since dictionaries use entries like

<key>some key</key>
<string>some value</string>
<key>another key with boolean value</key>
<true />

You can create a valid XML file that is not a valid plist file, for example:

<key>some key</key>
<!-- oops, forgot to enter a value - still valid XML -->

<!-- valid XML, not a plist -->
<key>another key with boolean value</key>
<true>yes</true>

If you're willing to go commercial, Plistinator will edit both binary and XML plist files.

Full-disclosure: I'm the author of Plistinator and the $2.99 it costs pays for my ramen and rent.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.