Add applications to the Dock via Apple Remote Desktop

Jul 22, '05 09:07:00AM

Contributed by: telegramsam

Using Apple Remote Desktop, send the following UNIX Command to as many machines as you like to add an app to the dock. I suggest sending the command as the user whose dock you are modifying while that user is not logged in. Please note that the path to that app must be identical on every machine to which you send the command.

defaults write /Users/student/Library/Preferences/com.apple.dock \
persistent-apps -array-add '<dict><key>tile-data</key><dict>\
<key>file-data</key><dict><key>_CFURLString</key>\
<string>/PATH/TO/APP.app</string><key>_CFURLStringType</key>\
<integer>0</integer></dict><key>file-label</key><string>APP NAME</string>\
<key>file-type</key><integer>41</integer></dict><key>tile-type</key>\
<string>file-tile</string></dict>'
Replace USERNAME, /PATH/TO/APP.app, and APP NAME with proper values, of course.

[robg adds: I haven't tested this one...]

Comments (9)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050713192614308