问题描述
我想知道如何使用 Bash 脚本更改 macOS Catalina 中 Finder 侧栏中的项目。
使用 $HOME/Library/Preferences/com.apple.finder.plist
或 $HOME/Library/SyncedPreferences/com.apple.finder.plist
编辑 defaults
或 PlistBuddy
,然后重新启动 Finder (killall Finder
) 或重新登录用户对侧边栏没有影响.
我认为关于侧边栏的重要信息存储在 com.apple.LSSharedFileList.FavoriteItems.sfl2
目录下的 sfl2 (previously sfl) 文件(可能只有 $HOME/Library/Application\ Support/com.apple.sharedfilelist
重要,不确定)中,可以转换使用 plutil -p file_name.sfl2
转换为人类可读的格式。
尽管目前看来 no tool exists to edit sfl2 files 或我找到的信息是 deprecated/过时 (mysides
,sfltool
,FinderSidebarEditor
)。>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)