在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 图标 应用程序

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-12-03  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 863
  • 日志数: 17
  • 文件数: 4
  • 建立时间: 2008-01-26
  • 更新时间: 2008-07-09

RSS订阅

Open Toolbar