The Computer Oracle

How can i remove an app icon on mac's application switcher (cmd+tab menu)?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5

--

Chapters
00:00 How Can I Remove An App Icon On Mac'S Application Switcher (Cmd+Tab Menu)?
00:24 Accepted Answer Score 23
01:10 Answer 2 Score 0
01:33 Answer 3 Score 3
02:34 Thank you

--

Full question
https://superuser.com/questions/297291/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #mac #alttab

#avk47



ACCEPTED ANSWER

Score 23


To do this, you can modify the Application's Info.plist file. To get to this file, either cd into the Application (Apps are just directories) or, in Finder, right click on the app icon and choose "Show Package Contents". Then edit the Info.plist file in your favorite text editor (Or the Property List Editor if you have it installed) and add the following text (or add in the appropriate key/value in Property List Editor).

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

Note that not only does this hide the dock icon, but it also hides the menu bar. Unfortunately I don't know of a way to only hide the dock icon.

Source, yes, it's old, but presumably it still works. Let me know if it doesn't.




ANSWER 2

Score 3


Modifying the Info.plist is not really practical most of the time. It also removes the menu bar of the application. If the application is signed, editing the Info.plist usually breaks the code signature, so that for example the application won't be allowed to access items from the login keychain automatically. Some applications like TextEdit and Chess crash on launch if their Info.plist has been modified. The Info.plist might also get replaced if you upgrade the application.

(If you have seen different variants of <key>LSUIElement</key><string>1</string>, both LSUIElement and NSUIElement work, and <string>1</string> can also be replaced with <integer>1</integer> or <true/>. See grep -A1 [LN]SUIElement /Applications/*/Contents/Info.plist.)

Witch has an option to exclude applications by name:

I mostly switch between applications by using keyboard shortcuts or with Alfred. I have disabled ⌘⇥ and ⇧⌘⇥ with KeyRemap4MacBook:

<autogen>__KeyToKey__ KeyCode::TAB, VK_COMMAND | ModifierFlag::NONE,
KeyCode::VK_NONE</autogen>
<autogen>__KeyToKey__ KeyCode::TAB, VK_COMMAND | VK_SHIFT |
ModifierFlag::NONE, KeyCode::VK_NONE</autogen>



ANSWER 3

Score 0


If you are happy to have these programs start at startup, you can go to:

  • System Preferences
    • Accounts
    • Login Items

And then add the programs you want, and click hide. Viola, they will run, and not appear in the dock, or the Application switcher.