|
|
Add Dock items from the command line
There's no reason to mess with the default .plist in the Dock bundle. Create a new user (we'll call him UserA, for now). Log in as UserA and then populate the Dock as you want it to be for every new user. Now copy the file
~/Library/Preferences/com.apple.dock.plist (from UserA's home directory) to somewhere easily accessible (/Users/Shared/, for example). Now log in as an administrator, and execute the following command in the Terminal.
sudo cp /path/to/copied/com.apple.dock.plist /System/Library/User\ Template/English.lproj/Library/Preferences/Naturally, replace the placeholder path directly after cp with the real location you copied com.apple.dock.plist to. If you copied it into /Users/Shared/, then you would do the following.
sudo cp /Users/Shared/com.apple.dock.plist /System/Library/User\ Template/English.lproj/Library/Preferences/Alternatively, you could just do this without copying the .plist file at all (assuming you haven't changed the default path for home directories from /Users/).
sudo cp /Users/UserA/com.apple.dock.plist /System/Library/User\ Template/English.lproj/Library/Preferences/Every new user created will now have that Dock preferences file copied to their ~/Library/Preferences directories, which the Dock will respect, so it won't copy its default .plist in there.
---
Add Dock items from the command line
Crap! Sorry. Replace that third terminal command with the following. I forgot the "Library" part of the path.
sudo cp /Users/UserA/Library/com.apple.dock.plist /System/Library/User\ Template/English.lproj/Library/Preferences/ ---
Add Dock items from the command line
Awesome! Thanks so much for this. I've been looking for an easy way to set up our soon-to-be new OS X systems with a default dock that is different than the usual default one when I set up the users on the workstations.
Add Dock items from the command line
This is helpful if you write an application. You can then add your app to the users dock automatically from the installer process.
Add Dock items from the command line
actually you should probably do this at user level rather than the default dock.
Add Dock items from the command line
This is a bad way to do things anymore, the dock should be populated via script. In the past, copying the whole dock worked. But not for people that have different apps on their dock. If your managing a lab, sure go ahead, but if your deploying an app to a bunch of computers already with docks, then try to use a script. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|