I'm would like to modify a subkey in a plist file (i.e. "TB Item Identifiers"):
NSNavPanelExpandedStateForSaveMode = 1;
NSPreferencesContentSize = "{508, 413}";
NSPreferencesSelectedIndex = 6;
"NSToolbar Configuration BrowserWindowToolbarIdentifier" = {
"TB Display Mode" = 2;
"TB Icon Size Mode" = 1;
"TB Is Shown" = 1;
"TB Item Identifiers" = (
BackForwardToolbarIdentifier,
HomeToolbarIdentifier,
InputFieldsToolbarIdentifier
);
"TB Size Mode" = 1;
"TB Visibility Priority Values" = {
BackForwardToolbarIdentifier = (
999
);
InputFieldsToolbarIdentifier = (
1000
);
};
};
I'm using the following command in a shell script :
defaults write com.apple.file key keyvalue
So each time I want to change "TB Item Identifiers", I'm modifying the entire "NSToolbar Configuration BrowserWindowToolbarIdentifier". How to directly modify a plist sub key or a sub sub key ?