If you like to have an organized Dock in OSX, here is a quick hack that will let you organize the applications that live on your dock by placing spacers between them. Here we go…
1. Open Terminal and type (or copy and paste) :
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
2. While still in Terminal we will restart the Dock by typing:
killall Dock
Once the Dock has restarted, you will see a space between some of your icons. You can reposition the space, by clicking on it and dragging it to a new location. You can also delete it by dragging it off your dock. You can even have many spacers by typing in the above commands as offen as you like!