
In examining the strings inside the Dock binary in Leopard, I found a way to add real separators to the dock, instead of adding dummy applications with empty or decorative icons, as commonly done.
This works only in Leopard (OSX 10.5):
- Run the following commands from the Terminal:
defaults write com.apple.dock persistent-apps -array-add '{ "tile-type" = "spacer-tile"; }' killall Dock - Once the dock restarts, you should see a blank space after the last application that is permanently in the Dock (before the icons for applications that are currently running but not always in the Dock).
- You can now drag the empty spaces to where you want them, or right-click on them and select
“Remove from Dock” if you no longer need them.
Note: you can run the “defaults” command several times in sequence before the “killall” command, to add multiple separators in one go and then just rearrange them as needed.
