OS X的配置文件一般是plist.存放在Library/Preferences之类的地方.格式为XML.但最近OS X开始把plist变成binary的,文本打开查看变得很困难.

OS X提供了工具,可以让plist很容易在xml和binary之间切换.

$ plutil -convert xml1 some_binary_version.plist

这样他就变成了xml了.

$ plutil -convert binary1 some_xml_version.plist

注意convert后的参数为binary1何xml1.为啥弄成这样?不解而且很奇怪.

Categories: Code

Yu

Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

Leave a Reply

Your email address will not be published.