Introduction

If you want to use software that must remain open all the time but you don’t want to have its icon in your Dock or in the switcher (Cmd + Tab), it’s possible, though it doesn’t always work in all cases.

Prerequisites

There aren’t many prerequisites since the only thing you’ll need to be careful about is that before doing the following steps, your application must be closed.

Info.plist

Now, let’s get to the serious business. Go to your Applications folder and find the application you want to modify. In my case, I’m using XRG (a tool that creates graphs).

Right-click on the application, then “Show Package Contents”. Go to the “Contents” folder and edit the Info.plist file. There are only 2 lines to add at the end before </dict>:

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

Which gives me in the end:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>CFBundleDevelopmentRegion</key>
        <string>English</string>
        <key>CFBundleDocumentTypes</key>
        <array>
               <dict>
                       <key>CFBundleTypeExtensions</key>
                       <array>
                               <string>xtf</string>
                       </array>
                       <key>CFBundleTypeIconFile</key>
                       <string>xtf2</string>
                       <key>CFBundleTypeName</key>
                       <string>XRG Theme File</string>
                       <key>CFBundleTypeOSTypes</key>
                       <array>
                               <string>XTF</string>
                       </array>
                </dict>
       </array>
       <key>CFBundleExecutable</key>
       <string>X Resource Graph</string>
       <key>CFBundleGetInfoString</key>
       <string>XRG v1.1u</string>
       <key>CFBundleHelpBookFolder</key>
       <string>Online Help</string>
       <key>CFBundleHelpBookName</key>
       <string>XRG Help</string>
       <key>CFBundleIconFile</key>
       <string>icon4.icns</string>
       <key>CFBundleIdentifier</key>
       <string>com.piatekjimenez.xrg</string>
       <key>CFBundleInfoDictionaryVersion</key>
       <string>6.0</string>
       <key>CFBundleName</key>
       <string>X Resource Graph</string>
       <key>CFBundlePackageType</key>
       <string>APPL</string>
       <key>CFBundleShortVersionString</key>
       <string>1.1u</string>
       <key>CFBundleSignature</key>
       <string>XRGA</string>
       <key>CFBundleVersion</key>
       <string>1.1u</string>
       <key>NSMainNibFile</key>
       <string>MainMenu</string>
       <key>NSPrincipalClass</key>
       <string>NSApplication</string>
       <key>LSUIElement</key>
       <string>1</string>
</dict>
</plist>

Now, all that’s left is to save the changes and restart the application :-)

Issues

I made the changes but nothing different is happening

You need to log out and back into your session and try again.

The application no longer opens

You need to move the added lines elsewhere in the code; something is not working correctly. In the worst case, you can always delete the 2 added lines and the application will work as before.

Last updated 08 Apr 2008, 07:16 CEST. history