modifying a Plist from command line on Mac using Defaults

前端 未结 4 1286
离开以前
离开以前 2021-01-30 17:57

Does any one know how to modify a Plist file from command line using defaults? Currently there are two Dictionaries under the URL types array; I n

4条回答
  •  时光取名叫无心
    2021-01-30 18:25

    OSX has PlistBuddy, which makes this a lot simpler.

    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/PlistBuddy.8.html

    See also: https://github.com/kevinSuttle/OSXDefaults/blob/master/REFERENCE.md

提交回复
热议问题