Tutorial: Make an Application “Invisible”

matutorial.jpegEver loved an application, but wished it never appeared in the dock, like spotlight? It’s always there, but has no dock item. I’ve wanted such functionality a surprising number of times, particularly with application launchers such as LaunchBar and Quicksilver.

They’re great, but I never use their dock icon; I use their keyboard shortcut instead. So, why have them sitting there taking up space in your dock? There is a relatively simple hack that fixes it, so that when launched, the application still runs but does not appear in the dock (or when command – tabbing).

All it requires is a simple addition to the application’s “info.plist”. For those who don’t know, a .plist file (short for preferences list) is a small xml file that you can find all over OS X. Each application contains at least one called “info.plist” that, among other things, tells the OS how to deal with the application. To find this file right (or control) click the application and select “Show package contents.”

Screenshot

This may come as a surprise to some of you but an OS X .app is actually a folder that contains most of the files that the app needs to run. We’ll leave the intricacies for another article. Anyway, Finder will open a new window and there will be a single folder displayed: “Contents”. Open this and you will be presented with a few files and folders. One of these will be called “Info.plist”. That is the one we’re after.

After backing this up, right (control) click on this and open with text edit. What you will see is a small xml file, don’t panic if you haven’t played with xml before we’re not going to do anything drastic. The file will have a central column of data enclosed after a “<dict>” tag and before a “</dict>” tag (this is quite obvious to see). Now at the end of the column add 2 lines (remember before the “</dict>” tag):

"<key>LSUIElement</key>
<string>1</string>"
(without the quotes).

Screenshot

Screenshot

They don’t have to line up with the others, but it will certainly make reading much simpler. Now, save this as it was (remember to back up the original as a different file name in case you make a mistake). Next time you launch the application it will not appear in the dock.

N.B. – to quit the application you may have to manually quit its process in the activity monitor, but this depends on the application.

Comments

18 Responses to “Tutorial: Make an Application “Invisible””

  1. Kha on October 26th, 2007 5:10 am

    Excellent post.

    There is a relatively easier method to do this same method through a program called “Dockless”. It has been a real help for me.

    This is the link for the program
    http://homepage.mac.com/fahrenba/programs/dockless/dockless.html

  2. Rich on October 26th, 2007 5:11 am

    It is worth checking an application’s preferences before doing this – Quicksilver for instance already contains the option not to display the Dock icon, as do many other apps.

  3. Pete on October 26th, 2007 5:47 am

    Great! Quick question — is there an easy way to hide an app? I use CMD+H all the time, but would ideally prefer a button (like minimise, which I don’t use at all) to perform this function.

  4. Margus on October 26th, 2007 7:01 am

    This thing is not working for MenuShade :(

  5. Ilja on October 26th, 2007 8:46 am

    On a pedantic technical note, there are a couple of empty quotes in the article because the tags mentioned are not displayed but treated by browsers as real markup. You should replace the angles (the “less than” and “greater than” signs) with HTML entities on publishing. The PHP function “htmlspecialchars()” does that. :)

  6. Miles Evans on October 26th, 2007 11:06 am

    @Ilja: Fixed…Thanks totally missed that!

  7. Daniel Greg on October 26th, 2007 1:36 pm

    Hey guys,
    @Margus – Sometimes it doesnt work at first. Restart and you should notice the difference.
    @Pete – Other than the menu item (application > Hide) and the keyboard shortcut I dont know of any other methods.
    @Ilja – sorry about that!

  8. Sean C on October 27th, 2007 12:49 am

    That is the hard way to do it! Just use this little app:

    http://homepage.mac.com/fahrenba/programs/dockless/dockless.html

  9. Daniel Greg on October 27th, 2007 4:04 am

    It certainly is the long way round. But some people like to get their hands dirty.
    You can also see some other cool little things in the plist and play around.

  10. pro on September 11th, 2009 7:33 am

    nice post and i would like to tell u thet dockless just hides thr app from the dock but it will still appear on the today in your finder. But this is a better way tq man

  11. bhartijoshi on September 14th, 2010 5:29 pm

    can you please suggest me what to do with the windows apps. I mean if i want to make windows app dockless or invisible then what should i do?

    thanks
    waiting for your reply

  12. idrive on February 9th, 2011 4:11 pm

    Hi Guys, I just found a pretty nice site for unlock / jailbreak/ iphone 3g 3gs and iphone4 jailbreak.

    http://www.anysim.net

    Thank u Anysim Team for fast Support. :)

    Did everybody now when the update ios 4.3 for iphone4 comes?

  13. Loren Dupas on September 20th, 2011 4:02 am

    Hey, you have a Nice section of content. I just stumbled upon your weblog. The clearness in your post is just nice. Anyway I will be subscribing to your site, if possible ! I hope its ok to borrow a few of your wonderful ideas! You really have a gift for writing. Thank you, very much.

  14. Gaptek Update on November 2nd, 2011 6:15 pm

    Gaptek Update Can you find any similarity between the two? Luke, Obi-Wan, and the others’ last stand against the Empire and the hunt for Dracula led by Dr. Van Helsing? How are Obi-Wan and Luke similar to Van Helsing and Jonathan Harker? How are Dar…

    Can you find any similarity between the two? Luke, Obi-Wan, and the others’ last stand against the Empire and the hunt for Dracula led by Dr. Van Helsing? How are Obi-Wan and Luke similar to Van Helsing and Jonathan Harker? How are Darth Vader and the…

  15. chemise dior on April 8th, 2013 12:16 pm

    Greetings, I do believe your web site might be having web browser compatibility issues.
    When I look at your site in Safari, it looks fine however,
    when opening in I.E., it’s got some overlapping issues. I simply wanted to give you a quick heads up! Besides that, wonderful site!

    Feel free to surf to my page chemise dior

  16. chemise homme armani on April 9th, 2013 12:19 am

    We are a bunch of volunteers and opening a new scheme in our community.
    Your site offered us with helpful information to work
    on. You have done an impressive process and
    our entire group might be grateful to you.

    Also visit my web page … chemise homme armani

  17. chemise tommy hilfiger on April 15th, 2013 11:54 pm

    Hi! Would you mind if I share your blog with my twitter group?
    There’s a lot of folks that I think would really enjoy your content. Please let me know. Thanks

    my homepage; chemise tommy hilfiger

  18. chemise ralph lauren on April 22nd, 2013 10:15 am

    Pretty section of content. I just stumbled upon your blog and in accession capital to assert that
    I get in fact enjoyed account your blog posts. Any way I will be
    subscribing to your augment and even I achievement you access consistently rapidly.

    Also visit my blog :: chemise ralph lauren

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!