PlistEdit Pro Icon

Scripting

Applescript

PlistEdit Pro allows you to automate tasks involving property lists by offering full Applescript support. For more information on how to script PlistEdit Pro, refer to its Applescript dictionary using Script Editor, as well as the example scripts included on the disk image along with PlistEdit Pro.

PlistEdit Pro also includes a scripts menu which will let you run commonly used scripts from within the application. Any script files found in ~/Library/Application Support/PlistEdit Pro/Scripts will be added to the menu. You can select an item from the menu to run the script, hold down the command key while selecting the item to reveal it in the finder, and hold down the option key while selecting to edit the script in Script Editor.

Command line

PlistEdit Pro also provides a command line tool, pledit, which allows you to open property lists in PlistEdit Pro from the command line and shell scripts. You can open any number of existing property list files by passing them as arguments on the command line:

% pledit ~/Library/Preferences/com.apple.finder.plist
% pledit MyApp.app/Contents/Resources/*.plist

pledit can also read property list data from stdin and open the data up as a new document in PlistEdit Pro:

% nibtool -e keypaths.plist MainMenu.nib | pledit
% hdiutil imageinfo -plist MyDiskImage.dmg | pledit

The first time you open PlistEdit Pro with a new version of pledit, it will ask you if you want to install the tool, which requires an admin password and installs in /usr/bin. You can also install the tool later via the preferences window.