Mac Tricks: Adding Separators to the Dock
Posted on March 24th, 2009 by GrandmasterB under Mac Tricks
This is my first tutorial in what I’m hoping will become a series of easy Mac Tricks. I’m all about customization, and especially when it comes to my Mac and my workspace. When I got my new Mac Pro for work, I spent a good portion of the morning customizing the look from the icons, to the wallpapers and even the Dock. If you’re a fellow design or even a casual Mac user; I’m sure you have a fair amount of launch icons in your Dock. I wanted to find a way to add separators to the Dock, so that I could easily sort applications and make it easier to locate them without hunting.
Well, if you have tried to do the same thing you probably noticed that there’s no way to add dock separators built into OS X. So, how do you solve the problem? Well, with a little research I have found the solution. First let’s take a look at my existing dock:

As you can see, it’s quite a mess of icons and there’s really no rhyme or reason to how they’re laid out. With the addition of a separator between the icons, it would be easier to find the right application rather than scrolling through them all. So, how do you add a separator? As I mentioned there’s no clear cut way to add them from the OS, so you have to do a little tweaking in the Terminal. So if you don’t have the Terminal App in your dock, you can find it under: Applications > Utilities > Terminal.
With the Terminal App open, enter the following code to add a single separator to the Dock (copy and paste the first line to make it easier):
defaults write com.apple.dock persistent-apps -array-add '{ "tile-type" = "spacer-tile"; }'
hit return and type:
killall Dock
hit return
Your Dock will disappear and when it returns (a few seconds) there will be a separator towards the end of the Dock…it’s invisible, but it’s there. Now to position it, just click and drag it to where you want. If you want more than one separator, you just need to enter the first line of code again for as many separators as you want. That’s it…pretty easy! Here’s what my Dock looks like after the addition of separators.

Now all of my icons in the Dock are organized by application type. I have created six groups of icons (some you can’t see).
- Browsers, Twitter and IM
- Graphics Programs
- Development Programs
- Administrative Programs
- System Apps
- Games
If you like this tutorial let me know, or if you have tips you’d like to share I’d love to hear them. Until next time…
~ GrandmasterB



March 24th, 2009 at 10:59 am
couldnt get it to work. pasted first line and get syntax error
March 24th, 2009 at 11:10 am
i copied the full first line and pasted and it says that command not found… did i miss a step?
clints last blog post..Pay It Forward – Follow up
March 24th, 2009 at 11:11 am
great tip, but… how do I undo it :p
March 24th, 2009 at 11:13 am
Never mind, I figured it out. Just right click on empty space and select “remove from dock”. I would have felt very foolish if I had to be told how to do that :p
March 24th, 2009 at 11:24 am
Thanks, great tip.
Now, is there a way to resize the spacer-tile or get a different sized one?
March 24th, 2009 at 11:52 am
Thank you all for the comments. There appears to be an error when copying the text from the browser. It’s taking the styling and changing the quotes. I’ll fix it and update the comments once I figure out the error.
~ GrandmasterB
(edited @ 11:57am MDT – Code is fixed and Copy/Paste is working)
March 24th, 2009 at 2:23 pm
Great for Leopard. Any way to do this in Tiger?
March 24th, 2009 at 3:05 pm
I’ll try to dig something up on that. Thanks for the comment.
August 10th, 2009 at 3:35 pm
Hi,
Thanks a million. this is exactly what I was looking for. I am sure that this will help me.
I am a banker & I just bought a Mac computer with my bonus performance award I got last week. Its the first time that I am using a Mac operating computer & I didn’t quite understand how to use it properly though I am able to get familiar with the basic operations.
I was able to find this post on Mac terminal skins – http://www.levoltz.com/2009/08/08/macchanging-skins-of-the-terminal/ but is quite hard & complicated to understand for me. Its the first post that came across for me since I mostly use that blog for information.
Its a good blog, but then, I found yours & its really great there are so many & topics to discuss. Although its hard for me to understand some things, I guess that this will be a fast track to get familiar Mac operating systems.
I thank you you for this amazing post. Keep it up. I will keep in touch.
Thanks again.
August 14th, 2009 at 9:30 am
this is brilliant worked first time!!!!!! GrandmasterB FTW!!!!!!!!!!!
October 27th, 2009 at 2:07 am
This is awesome. Thank you very much!