How to write in a <array><dict> structure with defaults write?
Posted
by
Hedge
on Super User
See other posts from Super User
or by Hedge
Published on 2012-06-18T15:57:10Z
Indexed on
2012/06/18
21:19 UTC
Read the original article
Hit count: 315
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?
© Super User or respective owner