Previous Next  Up  Table of Contents  SpamSieve Home

7.8   How can I hide SpamSieve’s Dock icon?

You can hide SpamSieve’s Dock icon from both the Dock and the Command-Tab switcher by entering these two commands in Terminal:

/usr/libexec/PlistBuddy /Applications/SpamSieve.app/Contents/Info.plist -c "Set LSUIElement 1"
sudo codesign -f -s - /Applications/SpamSieve.app

To show the Dock icon again, enter these two commands in Terminal:

/usr/libexec/PlistBuddy /Applications/SpamSieve.app/Contents/Info.plist -c "Set LSUIElement 0"
sudo codesign -f -s - /Applications/SpamSieve.app

The PlistBuddy command changes the Dock icon’s visibility. The codesign command is necessary to update SpamSieve’s code signature. On Mac OS X 10.9 Mavericks, an invalid code signature will cause the OS to repeatedly prompt you about authorizing access to the Contacts database. The codesign command can be omitted on earlier versions of Mac OS X.

Opening Windows

When SpamSieve’s Dock icon is hidden, its menu bar is inaccessible, but a new command called SpamSieve - Open Window will appear in Apple Mail’s Message menu after quitting and relaunching Apple Mail. This lets you configure SpamSieve’s preferences, view the statistics, and access other parts of SpamSieve’s user interface. With other mail programs, you will need to use this script in order to do that.

SpamSieve Updates

If you download a new copy of SpamSieve, it will have a new Info.plist file, so you would need to make the above change again if you still want SpamSieve’s Dock icon to be hidden.

Previous Next  Up  Table of Contents  SpamSieve Home