Add Spacers to the Dock
October 23, 2008 - Filed in: Dock/Exposé/Dashboard
Start by opening up Terminal, located in Applications/Utilities. Type the following line and then hit enter:
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'For the changes to take effect you will have to restart the Dock, either by logging out and in again or by running the
killall Dock command in the Terminal. The spacer appears at the end of the icons that are permanently in the Dock. You can then drag it along to where you want it.
The above command inserts the spacer on the applications side of the Dock. To insert a spacer on the right hand side, use the following command:
defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'As always, you will have to run
killall Dock for changes to take effect. To add multiple spacers just run the command again and again. Note that you can use the "up" arrow in terminal to automatically enter the last run command.If you want to remove a spacer, treat it like any other icon in the Dock. Either drag it off and let go to get a nice puff of smoke, or right-click on it and choose "Remove from Dock".
