在Dock中加入应用程序快捷图标的方法和当前应用程序列表
上一篇 /
下一篇 2008-07-09 14:32:33
/ 个人分类:MAC
在terminal中输入如下代码,
~ defaults write com.apple.dock persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Calculator.app/</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"
红色部分是要添加的应用程序
~ killall Dock
重启Dock
~ defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
在Dock中添加当前应用程序列表
The com.apple.dock.plist can only be written via the user (ie. $USER). So even when you use 'sudo' you are still trying to write as ROOT. I fixed this with the following 2 changes:
1. Use 'sudo -u $USER' to write your changes as the user
2. Use the direct path '$HOME/Library/Preferences/com.apple.dock' to ensure that you are writing to the correct plist.
导入论坛
收藏
分享给好友
管理
举报
TAG:
Dock
图标
应用程序