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
URL types
Use the -array-add value type:
-array-add
defaults write /path/to/plist/file "URL Types" -array-add '{"URL Identifier" = "com.myapp.2"; "URL Schemes" = { "two"; }; }'