Quit SpamSieve

Summary: Quits SpamSieve if it’s open.
Requires: SpamSieve and Mailsmith or Entourage
Suggested Key Binding: Mailsmith Shutdown Items folder or Entourage Quit Schedule
Last Modified: 2019-10-02

Description

If you put this script in Mailsmith’s Shutdown Items folder, SpamSieve will quit whenever Mailsmith quits. You can use it in Entourage by creating a schedule that runs an AppleScript on quit.

Note: SpamSieve now has a preference to quit when there are no mail programs open, so this script is no longer necessary.

Installation Instructions · Download in Compiled Format · Download in Text Format

Script

tell application "System Events"
    
try
        
if exists (processes whose creator type is "mtSS") then
            
tell application "SpamSieve"
                
quit
            
end tell
        
end if
    
end try
end tell