How to write in a <array><dict> structure with defaults write?
- by Hedge
I've got a .plist-file with a structure like this:
<plist version="1.0">
<array>
<dict>
<key>BundleIsVersionChecked</key>
<false/>
<key>BundleIsRelocatable</key>
<false/>
<key>BundleHasStrictIdentifier</key>
<false/>
<key>RootRelativeBundlePath</key>
<string>value</string>
</dict>
</array>
</plist>
I want to add or edit the RootRelativeBundlePath-key with the defaults write command.
Another possibility would be writing the whole plist-file but it has to be the same exact structure.
How can I do this?