PSD to HTML conversion PSD to HTML conversion PSD2HTML.com with over 300 professionals takes the designs to HTML and beyond

Code Snippet

Home » Code Snippets » HTML » Add Spaces to Dock in OS X

Add Spaces to Dock in OS X

This is absolutely not HTML related, but by sheer demand, I needed to add it somewhere. To add a "space" to the dock in OS X, open up Terminal.app and enter this. Enter it as many times as you want spaces. Error on too many, they are easy to remove.

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'

They won't show up until you force restart the Dock with:

killall Dock

To remove them, just drag them up and out of the Dock like any other icon. To move them around, click and drag.

Subscribe to The Thread

  1. shawtttt

    Chris, maybe it’s time to add another snippet section? Mac os snippets? :)

  2. Thank you so much for this! I’ve been waiting for this since I bought my mac earlier this year.

  3. CTPE30

    This is absolutely awesome! Simple and easy to use and get rid of them later if needed. Great! Thank you very much for sharing it.

  4. You guys should check out the pref pane secrets. Has this little terminal command along with a ton other useful ones.

  5. @joely

    Brilliant!

  6. lol that was one of my first thoughts when I saw your intro video. Thanks for addressing it!

  7. Joseph

    Seems like this might work only in 10.5 and above? Wasn’t able to get any spaces in 10.4.11.

    I need to upgrade anyway.

  8. If you’d like a similar effect in Windows 7, I just wrote an article on How-to Geek about it: http://www.howtogeek.com/howto/28255/how-to-organize-your-programs-in-the-windows-7-taskbar/.

    Thanks Chris for the inspiration … when I saw your dock in “Digging into WordPress” I knew I had to have that :)

  9. I love this trick. I used to watch your screencasts and always wanted to know how you got those spaces. I actually found it several weeks ago on another site, but this is great to have as I tend to get carried away with customizing my dock.

  10. Hey…thanks a bunch….love that tip…cheers

  11. I can’t seem to get the spaces where I want them, any help please ?

    Thanks so much !

  12. Tks a lot!!! work fine!!!

  13. Ryan Baillargeon

    Very Cool SIte – found it on smashing’s twitter. Thanks for the script here.

  14. http://macusertips.com/itweakdock/ an easy way to add spaces (and toggle between 2D/3D)

    • Super cool.
      Ive always wanted to organize the dock so I can group the applications in it better.

  15. Gyonka

    You put this in the HTML category?

  16. Thank you so much!! I have been looking for this all over, and found it here!

  17. Phil D

    Thanks for posting this Chris
    - From memory I think I was one of the naggers asking for this… cheers

  18. jkjkjk

    Onyx application do that and even much more extremely useful maintenance

  19. Thanks Chris

    Always learning a lot form you and CSS-Tricks. Please Keep them Coming

  20. look http://www.cusaro.it – it’s great!

Speak, my friend

At this moment, you have an awesome opportunity* to be the person your mother always wanted you to be: kind, helpful, and smart. Do that, and we'll give you a big ol' gold star for the day (literally).

Posting tips:
  • You can use basic HTML
  • When posting code, please turn all
    < characters into &lt;
  • If the code is multi-line, use
    <pre><code></code></pre>
Thank you,
~ The Management ~