MacOS – Hide Adium (or any other app’s) icon in the dock

applicationsdockiconmacossnow leopard

I find it really annoying how the Adium icon is always at the dock being useless:

enter image description here

because to open the contact list, you can just use the status bar item, (the dock icon is just a waste of space according to me):

enter image description here

So is there any way to remove the dock icon of Adium (or preferably any app) and only keep the status bar item (fully functional)?

This may seem like a duplicate of Hide an application's dock icon but that answer hides the status bar item as well, after that nobody answered. Have any new techniques surfaced since 2011?

I would rather have a technique without another app, but if thats the only option then that'll have to do…

Best Answer

I achieved this with a simple Terminal command:

defaults write /Applications/Adium.app/Contents/Info.plist LSUIElement true

Per defaults(1), "Defaults allows users to read, write, and delete Mac OS X user defaults from a command-line shell." So this is actually doing the same thing as the other answers here, but without manually editing the plist file, which makes it much safer, not to mention easier (and scriptable).