Previous Next  Up  Table of Contents  SpamSieve Home

7.8   How can I hide SpamSieve’s Dock icon?

A future version of SpamSieve will include a preferences checkbox for easily hiding and showing SpamSieve’s Dock icon, as well as a way to access this preference while SpamSieve’s Dock icon and menu bar are hidden.

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

/usr/libexec/PlistBuddy /Applications/ -c "Set LSUIElement 1"
sudo codesign -f -s - /Applications/

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

/usr/libexec/PlistBuddy /Applications/ -c "Set LSUIElement 0"
sudo codesign -f -s - /Applications/

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