Open Window
Summary: Presents a dialog letting you choose a SpamSieve window to open.
Requires: SpamSieve
Install Location: Scripts menu
Description
This lets you open SpamSieve’s windows without using the menu bar. One possible use would be if you want to adjust SpamSieve’s settings and you have the Dock icon hidden. Rather than unhiding the Dock icon, relaunching SpamSieve, choosing the appropriate menu command, and then re-hiding the Dock icon, you can run this script.
Download in Compiled Format · Download in Text Format
Script
tell application "SpamSieve"
activate
set windowNames to {"About", "Blocklist", "Corpus", "Log", "Preferences", "Software Update", "Statistics", "Whitelist", "Quit SpamSieve"}
choose from list windowNames with prompt "Open SpamSieve window:" without multiple selections allowed
try
set theName to item 1 of the result
on error
return
end try
if theName is "About" then set w to about window
if theName is "Blocklist" then set w to blocklist window
if theName is "Corpus" then set w to corpus window
if theName is "Preferences" then set w to preferences window
if theName is "Software Update" then set w to software update window
if theName is "Statistics" then set w to statistics window
if theName is "Whitelist" then set w to whitelist window
if theName is "Quit SpamSieve" then quit
if theName is "Log" then
edit log
else
set w's visible to true
end if
end tellLast Modified: 2009-01-01