Erica Sadun


Erica Sadun. iPhone. iPod touch. Macintosh. and More.

Update: plutil in Erica Utilities has new features

Erica Sadun | 7:29 pm | November 5, 2007 | Update, Utilities, Software, iPod touch, iPhone

I just updated plutil in the Erica Utilities with several new features. You can now touch (-t) a new plist and create it at the command line. You can then populate the property list at the top level by using -s -v, for example to add the value “Hello World” for key “Greeting”, issue plutil -s “Greeting” -v “Hello World”. To recover that value, issue plutil -v ‘Greeting”.

Basically, this adds all the features of my mac-based plhelper utility to the iPhone/iPod touch-based plutil. And don’t forget, don’t use “-convert” with my version. I couldn’t figure out how to use multi-character switches. So stick with “-c”.

plutil: [command_option] [other_options] file...
Command options are (-l is the default):
 -h             show this message and exit
 -l             output a list of the properties
 -t             create new property list(s) and exit
 -c fmt         rewrite the property list in format
                fmt is one of xml1 binary1
 -v key         retrieve the value for key
 -s key         set the value for key with the option given in -v
                (always outputs to xml)
Other options are not yet implemented.

3 Comments »

Pingback by iPhone and iPod Touch application and package updates … - Ste Packaging - No more iPHUCing around. | November 6, 2007 | 1:04 pm

[…] Erica’s Utilities (0.45) [added additional capabilities to plutil; go here for […]


Comment by macman | November 17, 2007 | 6:49 am

How can I create an array using plutil -s -v?

Thanks,
Oded


Comment by Erica Sadun | November 20, 2007 | 1:09 pm

Oded: You can’t create arrays yet. Right now it’s just key/value.


Comments RSS.

Leave a comment

You must be logged in to post a comment.

Previous and Next Entry

« Bug Alert: Editing in Tapp and VNotes | Update: SendFile updated »

wordpress | sheepdip design by mahud © 2007