我想修改plist文件中的一个子键(即“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
);
};
};
我在一个shell脚本中使用以下命令:
defaults write com.apple.file key keyvalue
每次我想更改“TB项目标识符”,我都要修改整个“NSToolbar Configuration BrowserWindowToolbarIdentifier”。如何直接修改plist子键或子子键?