Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[20,207 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 whoever 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 Jul 22, '05 11:28:45AM

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 Jul 22, '05 12:59:15PM
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 Jul 22, '05 11:53:33AM

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 Jul 22, '05 06:23:15PM

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 Jul 24, '05 09:09:51PM

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 May 19, '06 06:05:51AM

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 Sep 15, '06 08:50:58AM

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 Jun 14, '07 04:43:46AM

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 Oct 07, '08 03:44:15PM

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 | # ]