Add a Spacer to the Mac OS X Dock

You can add blank spacers to the Mac OS X Dock by issuing a defaults write command in the Terminal, you can see the effect in the screenshot above with the space between the Firefox icon and iChat icon.
To get a spacer paste the following command into the Terminal:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
You then must kill and relaunch the Dock to have the spacers appear, you can do this with the following command:
killall Dock
If you want multiple spacers, just issue the defaults write command the same number of times. Instead of repasting the command, you can do this by hitting the “Up” arrow on your keyboard within the Terminal to bring up the previously executed commands, just hit UP until you see the defaults write string and then hit return again.
The Dock spacers can be moved by simply dragging them around the Dock like any other icon. Likewise, you can remove the spacers by simply dragging them out of the Dock.
Thanks for the tip TJ!

Great tip!
Thanks
/Karl
Hi, this feature is really cool! I own a Mac and can try to add a spacer to the dock now.
[...] to hit the “Up” arrow on your keyboard to bring up the commands those are executed earlier. [Via] [...]
[...] OS X Daily Podobne artykuły:Przeźroczyste ikony w Dock Dosyć często zdarza mi się ukrywać okna za [...]
[...] Add Spacers to the Mac OS X Dock – this is done with a Terminal command that must be executed once for each spacer you want to [...]
[...] Add Spacers to the Mac OS X Dock – this is done with a Terminal command that must be executed once for each spacer you want to [...]
[...] the icon size beyond the default limits, make various changes to the app icons within the Dock, add spacers to the left and right side of the Dock, add custom stacks, and [...]
Great tip!
I recommend “killall -HUP Dock” (-HUP will relaunch so you don’t have to do it manually)
Is there a way to give this separator an image instead of just being blank?
For example, I think it would be pretty cool to give it the standard dock separator image (between the apps and the documents folder), found in the dock.app folder
cool. im experimenting with this, but how do i get it back to normal?..