Adding spacers in Dock

To add spacers in dock type this command on terminal:

1
2
defaults write com.apple.dock persistent-apps -array-add ‘{“tile-type”=”spacer-tile”;}killall Dock

I typed it thrice to get three spacers as:

http://1.bp.blogspot.com/-GQL_Im_iGbo/TZjRwsEg75I/AAAAAAAABAA/Gq0SsPa2Y74/s1600/Screen%2Bshot%2B2011-04-04%2Bat%2BAM%2B03.56.32.png

Its a nice way to group icons on dock