Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Hide any program's dock icon Desktop
Thanks to the recent version of Launch Bar (IMHO the finest App Switcher+ I've ever had the pleasure to use), their instructions for hiding the icon in the Dock appears to work for any application:
In order to get rid of the dock icon, you must modify the file named 'Info.plist' inside the Application's package (i.e. Sherlock.app/Contents/Info.plist). Open this file in your favorite text editor and add the following section (if it's already present simply change the 0 to a 1 in the string tag:
[KEY]NSUIElement[/KEY]
[STRING]1[/STRING]
NOTE: I substituted the standard square brackets for the purposes of posting here; you must substitute the angle brackets when editing. So far I've hidden my Sherlock and System Preferences icons. With the System Prefs you will have to write-enable the 'Info.plist' file by changing the permissions in a Terminal window:
sudo chmod 464 /Applications/System Preferences.app/Contents/Info.plist
Enjoy!


Panther broken!
    •    
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[83,417 views]  

Hide any program's dock icon | 27 comments | Create New Account
Click here to return to the 'Hide any program's dock icon' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Problem with logging in
Authored by: dsaponaro on Mon, Jul 2 2001 at 9:25AM PDT
Works great except if I have things set to start up at log in the icon appears in the dock. I have to quit the app then restart it.

Anyone know a work around?

[ Reply to This | # ]
Cocoa Only
Authored by: PhilMarshall on Mon, Jul 2 2001 at 4:32PM PDT
This tip only works with Cocoa Apps. Carbon apps don't have a file called 'Info.plist'.

[ Reply to This | # ]
Works in Carbon too!
Authored by: sabi on Mon, Jul 2 2001 at 9:16PM PDT
Actually, no. If the Carbon app uses a bundle, you can add that key/value pair to its Info.plist and it works fine. If not, you should be able to add the relevant information to its 'plst' resource. I just did it with iTunes (which is a bundle), and it worked fine.

Unfortunately, there's a side effect - no menubar. Good for LaunchBar, which is designed to have its menubar hidden, but not so good for Joe Random Program.

I seem to remember there is another key you can use, something like "ShowInDock", that -just- removes it from the dock, not anything else. Can't find it now though.

[ Reply to This | # ]
Works in Carbon too!
Authored by: beef on Mon, Jul 23 2001 at 12:36PM PDT
"If not, you should be able to add the relevant information to its 'plst' resource."

uh... like... how do you do this?

[ Reply to This | # ]
Works in Carbon too!
Authored by: darnit on Tue, Aug 14 2001 at 11:53PM PDT
What I did - (to get rid of dock icon for PiDock)
  • make a copy of PiDock.
  • Open ResEdit (works just fine in Classic)
  • Open PiDock in ResEdit
  • Open the plst resource
  • To the right you see scrunched up xml. Select one of the key/string pairs that's there including the "^" delimiter and paste it in next to itself.
  • change the value of the key element to NSUIElement
  • change the value of the string element to 1
  • save it, close it, launch it.
  • Voila. No dock icon.
Works in Carbon too!
Authored by: chabig on Thu, Feb 13 2003 at 10:10AM PST
In Jaguar, they have apparently changed the plist item named NSUIElement to LSUIElement. Although NSUIElement still works, you should begin to switch to the new terminology.

[ Reply to This | # ]
Works in Carbon too!
Authored by: srteresi on Wed, Nov 5 2003 at 3:27AM PST
Does this still work in Panther? I've tried setting NSUIElement and LSUIElement to 1 in wClock's Info.plist file, and wClock still shows up in my dock.

Scott

[ Reply to This | # ]
Works in Carbon too!
Authored by: jeffmcglew on Fri, Nov 7 2003 at 1:03PM PST
The NSUIElement works with wClock, but I had to log out and log back into my account before it would hide the dock icon.

The only thing was that I not only lost the menu bar but I lost the ability to call up the calendar as well.

[ Reply to This | # ]
Doesn't work with Outlook express
Authored by: pisellone on Thu, Nov 4 2004 at 4:28PM PST
I am not a guru and i wanted just that outlook express icon doesn't appear on the dock when the application has been opened.
I haven't found any .plist file that refers to outlook express, and opening the .app file with resedit i can't find any "plist resource".
Isn't there a normal way to persecute this simple aim? (I am a windows programmer and with that terrible OS all this things are very simple to do)
thanks (I am really getting crazy for this problem)

[ Reply to This | # ]
It removes access to the menu bar as well
Authored by: WinStop on Tue, Jul 3 2001 at 2:00PM PDT
I thought this one was good for iTunes, which really doesn't need a dock icon anymore because of the iTunes docklet. But with this hit you can't access iTunes' menu bar anymore. It there any method to hide the dock icon without toughing the remaining functionality? Thanks for any hint!

[ Reply to This | # ]
Panther update...
Authored by: robg on Fri, Nov 21 2003 at 10:44AM PST
Submitted as a new hint:
According to the Launchbar application's website:

Modifying the "Info.plist" file to remove the LaunchBar icon from the Dock no longer takes effect immediately. Mac OS X 10.3 now seems to cache the corresponding information. In order to invalidate this cache it seems to help to move the application to a different location after the modification (e.g. move it temporarily to the Desktop, then back to the Applications folder).

I verified this and it works... yeah!


[ Reply to This | # ]
Panther update...
Authored by: Pix0r on Wed, Jan 14 2004 at 5:58AM PST
Anyone have an idea how to, instead of removing the icons, placing them in a folder that sits in the dock. That way only taking the space of one icon but the apps are still accessable by the user. Like Dock Extenders drop down menu's exept instead with open apps rather than files/folders/apps... get my drift?

Should be possible :)

[ Reply to This | # ]
Hide any program's dock icon
Authored by: capitano on Tue, Feb 10 2004 at 9:58AM PST
After I entered the code to the Info.plist, the Sherlock icon just jumped in the dock a few times and disappeared. However I couldn't find the app running anywhere? Where have I done wrong? thx

[ Reply to This | # ]
Hide any program's dock icon
Authored by: hansning on Thu, Nov 30 2006 at 3:34PM PST
same problem as capitano. Quicksilver works without a dock icon and WITH a menubar, as does VirtueDestop. That's how i would like my apps that have menubar items to work. is this possible?

[ Reply to This | # ]
Hide any program's dock icon
Authored by: hansning on Thu, Nov 30 2006 at 3:37PM PST
btw, both of those programs have the code within them, though Quicksilver uses [integer] instead of [string]

[ Reply to This | # ]
Update for
Authored by: ebeans on Sat, Jun 30 2007 at 8:23PM PDT
This page is #1 if one googles "hide dock icon mac", so I thought I'd give it an update.

In 10.4.10, one adds the following instead to the plist (after <dict>):

<key>LSUIElement</key>
<string>1</string>

Remember to move the program temporarilty to another location and open it, in order to de-cache the plist.

[ Reply to This | # ]
Update for
Authored by: nvrmore100 on Wed, Jan 2 2008 at 11:56AM PST
Anyone got this working on Leopard? Seems all my hidden apps refuse to disappear any longer.

[ Reply to This | # ]
Update for
Authored by: Phosphor on Thu, Feb 21 2008 at 12:31PM PST
Good info, ebeans...

I just did this with DragThing v5.6, running under OS X 10.4.11.

It worked perfectly; no more DragThing icon in my dock.

Thanks!

[ Reply to This | # ]
Update for
Authored by: Phosphor on Thu, Feb 21 2008 at 12:51PM PST
...But now I'm laughing at myself.

I just noticed after editing the DragThing plist file, as ebeans suggested, that—while I no longer have the DragThing icon in my Dock—I do see its little menulet icon in my Main menu bar.

And I'm laughing even harder because upon further investigation I discovered I could've have done this by going into DragThing's preferences.

HEH! @ Me!

[ Reply to This | # ]
Hide any program's dock icon
Authored by: jondreads on Sun, Sep 2 2007 at 4:58AM PDT
The DockDodger application automates this.

[ Reply to This | # ]
Hide any program's dock icon
Authored by: divine on Sun, Feb 17 2008 at 12:09PM PST
This doesn't work for me at all for several reasons I guess...

First of all I'm running on Leopard 10.5.2 which is more than you can say about the guys in the other posts...

My main problem is pretty simple the code that you guys tell me to implement is already there, just as you guys typed it, but the icon is still present in the dock..!?

And the Dock Dodger App is worthless !!!
I've tried using it and so far it has only been able to remove itself from the dock :/

Everything else stays the same, even after a reboot..

So basically what I'm asking for is if anybody has a solution for this? :D
Feel free to PM/Email me if you do :D

[ Reply to This | # ]
Hide any program's dock icon
Authored by: saywake on Thu, Feb 28 2008 at 4:17PM PST
Are you sure the value is set to 1?

I'm running 10.5.2 as well, and I just used this hack for MenuCalendarClock ... works like a charm

[ Reply to This | # ]
Hide any program's dock icon
Authored by: whylom on Mon, Mar 10 2008 at 11:13AM PDT
I'm having the same problem on OS X 10.5.3. The fix recommended here is well documented by Apple, and I've found a ton of references to it throughout the web.

I'm moving the file after editing the info.plist but before running it. I'm using the Property List Editor that ships with the Xcode tools, and setting the property (as text) to "1".

I must be missing something. Can anyone recommend any troubleshooting ideas?

[ Reply to This | # ]
Hide any program's dock icon in Leopard 10.5.7?
Authored by: alexs77 on Sat, Jun 6 2009 at 12:17AM PDT

Hi!

Hm, is that supposed to still work in 10.5.7?

I wanted to hide the icon for the Goolge Quick Search Box. So I opened the Info.plist — but, as you can see, the file seems to be binary, or something.

How would you go about hiding the Dock icon for the Google QSB, or for just any program for that matter?

Thanks,
Alexander



[ Reply to This | # ]
Hide any program's dock icon in Leopard 10.5.7?
Authored by: tedw on Sun, Jun 7 2009 at 10:57AM PDT
well, I think NSUIElement was an older version of the plist property. it still works (apparently), but it's not documented (see here). in Leopard, the key to use seems to be LSUIElement. as to why the google info.plist file is mis-behaving... you're sure it's not corrupt? try downloading a fresh version. it gives an unknows core foundation error even when I try to open it in TextWrangler (which shouldn't be the case - TextWrangler should just open it passively)

[ Reply to This | # ]
Hide any program's dock icon in Leopard 10.5.7?
Authored by: JamieF on Wed, Nov 11 2009 at 11:04AM PST

You don't have to edit the plist with Property List Editor; /usr/bin/defaults can do it too. Example:

defaults write /Applications/Stickies.app/Contents/Info LSUIElement 1

Set it back to 0 to un-hide it.

Sadly the LSUIElement setting affects not only the Dock icon but also the presence of a menu bar... so if you want a menu bar but not a Dock icon this LSUIElement setting won't help.



[ Reply to This | # ]
Hide any program's dock icon in Leopard 10.5.7?
Authored by: errolbert on Tue, Sep 22 2009 at 6:51AM PDT
You may need the developer tools to get Property List Editor which can open binary plist files.

You can register for free at http://developer.apple.com

BTW, this tip worked for me on 10.5.8.

[ Reply to This | # ]