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
Open the Info.plist in a text editor to see the actual identifiers.
defaults write Absolute/Path/to/Info.plist CFBundleURLTypes -array-add '
CFBundleTypeRole
Viewer
CFBundleURLName
Mac App Store URL
CFBundleURLSchemes
macappstore
'
pbpaste | pl
converts the XML to the old-style format.
defaults write Info.plist CFBundleURLTypes -array-add '{CFBundleTypeRole=Viewer; FBundleURLName="Mac App Store URL";CFBundleURLSchemes=(macappstore);}'