Disable Dock Scaling in OS X
- February 26th, 2009
- Posted in Nerd! . Wow that's cool
- Write comment
**WARNING: VERY NERDY**
Recently I have found the need to take more control of the Dock in OS X. There are basic functions of the Dock that can be changed by System Preferences built into OS X, but there are tons of options that aren’t available by a built in Graphical User Interface (ie. the pretty window).
While there are some awesome third party apps like Onyx and TinkerTool that give you access to these preferences the downside is you have to install an app. While I have both of these installed on my personal machine I do not want them installed on my Labs in the schools I work for. Yet, I need some of the power they offer to keep my Labs uniform and running.
So to do this I have been trying to learn how to manipulate these preferences though the command line.
The function that kids always seem to find and mess with is the size of the dock. Even with Parental Controls enabled (which I have had quite a bad time with anyway) there is no way to lock this functionality down in System Preferences. So I present to you the ability to do it through Terminal, and in so doing through Apple Remote Desktop as well.
And if you are going to push this out, to lets say, a lab of computers you may want to make all of the uniform first. If not, skip this step.
Resize dock to uniform level:
defaults write com.apple.Dock tilesize -integer 32
Ok now the meat and potatoes.
Lock down ability to scale dock:
defaults write com.apple.Dock size-immutable -bool true
killall Dock
Unlock ability to scale dock:
defaults delete com.apple.Dock size-immutable
killall Dock
This is tested and works in OS X 10.5.6.
**Thank you TinkerTool, Daniel, and Justin.
**Update 2/27/09: Here is the command to lock the contents of the Dock as well.
Lock Dock Contents:
defaults write com.apple.Dock contents-immutable -bool true
killall Dock
Unlock Dock Contents:
defaults delete com.apple.Dock contents-immutable
killall Dock


Man, that’s cool. I have found that these ‘com’ commands are pretty useful, but you just have to how to use them. I used one to disable the backup on my iPhone so it wouldn’t take hours to sync my phone.
This is not working like it should for me. After I send the command. I go to Dock Preferences and the size bar is grey, but if I click on it then the dock shrinks. I end up with a tiny little dock and am unable to make it bigger.
I have noticed the same side effect. As a matter of fact, to counter act this I have actually edited the .nib file for the Apple Menu so that you can’t access Dock Preferences from it. I plan on doing a write up on this as well when I get some time.