The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "Plutil"
(Apple's version.) |
|||
Line 1: | Line 1: | ||
plutil is a program that can convert [[wikipedia:Property list|.plist]] files between a binary version and an XML version. Currently, there are two versions of this utility. |
plutil is a program that can convert [[wikipedia:Property list|.plist]] files between a binary version and an XML version. Currently, there are two versions of this utility. |
||
==Apple's plutil== |
==Apple's plutil== |
||
− | '''''See also: |
+ | '''''See also:'' [http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/plutil.1.html plutil's man page]''' |
+ | plutil: [command_option] [other_options] file... |
||
− | <pre> |
||
+ | The file '-' means stdin |
||
− | plutil: [command_option] [other_options] file... |
||
+ | Command options are (-lint is the default): |
||
− | The file '-' means stdin |
||
+ | -help show this message and exit |
||
− | Command options are (-lint is the default): |
||
+ | -lint check the property list files for syntax errors |
||
− | -help show this message and exit |
||
+ | fmt is one of: xml1 binary1 |
||
− | -convert fmt rewrite property list files in format |
||
+ | |||
− | fmt is one of: xml1 binary1 |
||
+ | There are some additional optional arguments: |
||
− | |||
+ | -s be silent on success |
||
− | There are some additional optional arguments: |
||
+ | -o path specify alternate file path name for result; |
||
− | -s be silent on success |
||
+ | the -o option is used with -convert, and is only |
||
− | -o path specify alternate file path name for result; |
||
+ | useful with one file argument (last file overwrites); |
||
− | the -o option is used with -convert, and is only |
||
+ | the path '-' means stdout |
||
− | useful with one file argument (last file overwrites); |
||
+ | -e extension specify alternate extension for converted files |
||
− | the path '-' means stdout |
||
+ | -- specifies that all further arguments are file names |
||
− | -e extension specify alternate extension for converted files |
||
− | + | -convert fmt rewrite property list files in format |
|
− | -- specifies that all further arguments are file names |
||
− | </pre> |
||
==Erica's plutil== |
==Erica's plutil== |
||
− | |||
plutil: [command_option] [other_options] file... |
plutil: [command_option] [other_options] file... |
||
-h show this message and exit |
-h show this message and exit |
Revision as of 19:21, 14 February 2011
plutil is a program that can convert .plist files between a binary version and an XML version. Currently, there are two versions of this utility.
Apple's plutil
See also: plutil's man page
plutil: [command_option] [other_options] file... The file '-' means stdin Command options are (-lint is the default): -help show this message and exit -lint check the property list files for syntax errors -convert fmt rewrite property list files in format fmt is one of: xml1 binary1 There are some additional optional arguments: -s be silent on success -o path specify alternate file path name for result; the -o option is used with -convert, and is only useful with one file argument (last file overwrites); the path '-' means stdout -e extension specify alternate extension for converted files -- specifies that all further arguments are file names
Erica's plutil
plutil: [command_option] [other_options] file... -h show this message and exit -l output a list of the properties (default) -k list the top level property list keys -t create new property list(s) and exit -c fmt rewrite the property list in format fmt is one of xml1 binary1 Setting and accessing (writes to XML): -v key retrieve the value for key -s key set the value for key with the option given in -v -i key set int value for the key with the option given in -v -f key set float value for the key with the option given in -v -0 key set the key to the boolean value false -1 key set the key to the boolean value true -r key remove the key/value pair for key