macOS – How to Hide Running Apps from the Dock on MacBook Pro

dockmacbook promacos

Is there a way I can hide a running app's dock icon Mac OS X?

Best Answer

Important Note: In Mac OS X 10.5+ the method explained below only works for apps which are not using the "Code Signing" feature which was introduced in 10.5 to ensure authenticity of running code. The result of applying this method to a signed app differs; it might cause the app to crash upon starting or results it unexpected behavior.

You can edit the file Info.plist contained in the directory of each App (e.g. /Applications/VLC.app/Contents/Info.plist)by adding the following lines:

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

For example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>LSUIElement</key>
        <string>1</string>
        <key>BuildMachineOSBuild</key>
        <string>11G63</string>
        <key>CFBundleDevelopmentRegion</key> 
        ...
        ...
</dict>
</plist>

When you will start the App you will see the icon just for one second and the it will disappear.

Dockless and Dock Dodger do this change automatically in apps.