Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Add applications to the Dock via Apple Remote Desktop Network
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...]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[11,036 views]  

Add applications to the Dock via Apple Remote Desktop | 9 comments | Create New Account
Click here to return to the 'Add applications to the Dock via Apple Remote Desktop' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Add applications to the Dock via Apple Remote Desktop
Authored by: Der Kommissar on Fri, Jul 22 2005 at 11:28AM PDT
Great Hint!

But...

How do I remove an application icon from the Dock via ARD?

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: extra88 on Fri, Jul 22 2005 at 12:59PM PDT
It looks like the defaults command doesn't have a delete option for arrays, only for keys: defaults delete domain key. Since the key, persistent-apps, contains the information for all Dock icons, you'd have to wipe them all and replace the key with a backed up copy. If you're going to do that, you might want to skip the defaults command entirely and just replace the .plist file.

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: chalfont269 on Fri, Jul 22 2005 at 11:53AM PDT
Terrific Hint!

I've been sending out the user's com.apple.dock.plist file (while the user is logged out) for a consistant dock in my labs, but I didn't know how to add an icon if the docks weren't meant to be the same.

Much appreciated.

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: telegramsam on Fri, Jul 22 2005 at 6:23PM PDT
please note that i accidentally put student where i should have but USERNAME.

sorry.

---
What is signature?

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: ti.man on Sun, Jul 24 2005 at 9:09PM PDT
Fantastic Hint, except I get the following error when I test it.
"Could not parse: <dict><key>tile-data</key><dict>\
<key>file-data</key><dict><key>_CFURLString</key>\
<string>/Applications/Kahootz.app</string><key>_CFURLStringType</key>\
<integer>0</integer></dict><key>file-label</key><string>Kahootz</string>\
<key>file-type</key><integer>41</integer></dict><key>tile-type</key>\
<string>file-tile</string></dict>. Try single-quoting it."
(Exclude the Speech marks). I have used a direct copy of the code pasted with the correct adjustments. It appears that it strips out the ' whe it tries to run.

Any Sugegstions

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: grfx on Fri, May 19 2006 at 6:05AM PDT
This isn't going to work in OS X 10.4.x. The pref file (.plist) does not look like a typical xml file.

Example:
bplist00Þ OP&&QOQQTUQWX_persistent-apps]magnificationXtilesize_wvous-br-modifier_wvous-bl-modifierZtrash-fullXautohide_checked-for-dashboardWversionYmod-count_wvous-br-cornerZlaunchanim_wvous-bl-corner_persistent-others¯&+3;DMW`hpx?‰‘š£¬Â³ÂºÃ‚ÉÒÛãëòù (/7@GÃ’Ytile-dataYtile-typeÑZfile-labelP^dashboard-tileÓ)*TGUIDÕ !"]file-mod-dateYfile-type_parent-mod-dateYfile-data¾cëþXTerminal)Àm oÓ#$%

If someone now how to do this with the terminal or ARD on a tiger box I would be very interested.

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: gbrick on Fri, Sep 15 2006 at 8:50AM PDT
Works for me if the single quotes are replaced with double quotes.
Some additional hints: replace persistent-apps with persistent-others to add documents or folders to the Trash side of the Dock.
If you send the command for the account that is currently in use, you can replace /Users/student/ in the path for the preference file with a tilde ~ to signify the current home folder. The icon will then appear in the user's Dock the next time they log in. This greatly facilitates adding items to a large number of computers at once.

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: chrmen on Thu, Jun 14 2007 at 4:43AM PDT
This script worked great along with pushing out the app folder saved me alot of time. I was also attempting to push it down to intel based MACs but this script did not work for it. Does anyone know the intel dock modifaction script. Thanks

[ Reply to This | # ]
Add applications to the Dock via Apple Remote Desktop
Authored by: island on Tue, Oct 7 2008 at 3:44PM PDT
any help with this:
I am using apple remote desktop 3.2. I want to add icon on the dock for student account. I am getting this error when I tried this 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>/Applications/Microsoft Office 2008/Microsoft Word.app</string><key>_CFURLStringType</key>\
<integer>0</integer></dict><key>file-label</key><string>Microsoft Word NAME</string>\<key>file-type</key><integer>41</integer></dict><key>tile-type</key>\string>file-tile</string></dict>'




Error message:

is-lab31 (206.78.xx.xx)
2008-10-07 11:31:27.419 defaults[1025:10b] Could not parse: <dict><key>tile-data</key><dict>\
<key>file-data</key><dict><key>_CFURLString</key>\
<string>/Applications/Microsoft Office 2008/Microsoft Word.app</string><key>_CFURLStringType</key>\
<integer>0</integer></dict><key>file-label</key><string>Microsoft Word NAME</string>\
<key>file-type</key><integer>41</integer></dict><key>tile-type</key>\
<string>file-tile</string></dict>. Try single-quoting it.


Also, I tried using " ", but same error message.


[ Reply to This | # ]