使用默认值在Finder plist中嵌套的字典类型?

时间:2018-11-23 23:34:39

标签: macos plist finder dotfiles

我正在为我的macOS点文件编写配置命令,并希望使用com.apple.finder plist命令来修改defaults的两个嵌套字典中的值。

在单个字典中修改值是有效的。

defaults write com.apple.finder ComputerViewSettings -dict CustomBrowseWithCustomViewStyle -bool true

修改嵌套在两个字典中的值无效。

defaults write com.apple.finder DesktopViewSettings -dict IconViewSettings -dict showItemInfo -bool true

返回

2018-11-23 18:32:52.668 defaults[72061:8599819] Cannot nest composite types (arrays and dictionaries); exiting

如何正确修改嵌套在两个字典中的值?

0 个答案:

没有答案