Erica Sadun


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

New Macintosh Utility: plhelper

Erica Sadun | 2:00 pm | November 4, 2007 | Macintosh, Utilities, Software

On Shaun Erickson’s request, I’ve put together plhelper, a Universal binary application for the Mac. Plhelper does much of what plutil does–and is in fact based on my iPhone port of that program–but also allows you to do three things that plutil does not. You can look up a value by key (-v), you can set a value by key (-s -v), and you can create a new plist (-t, to “touch”).

% /usr/local/bin/plhelper
plhelper: [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.

1 Comment »

Comment by Ste | November 5, 2007 | 5:34 am

Thanks for putting this together for me, Erica.

I used it to easily add an MD5 hash to all of my package’s plist files, to take advantage of a new feature in Installer.app. Now my users can rest assured that no one has tampered with the package between the time I upload it to the mirrors and they download and install it.

I also used it to make a global change to all my plist files, which will result in a substantial cut in the number of connections to my main server. This, in turn, should make it perform much better.

Again, thanks!

-ste


Comments RSS.

Leave a comment

You must be logged in to post a comment.

Previous and Next Entry

« New Erica Utility: doPrompt | Bug Alert: Editing in Tapp and VNotes »

wordpress | sheepdip design by mahud © 2007