Open Window
Summary: Presents a dialog letting you choose a SpamSieve window to open.
Requires: SpamSieve
Install Location: Scripts menu
Last Modified: 2021-11-26
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.
Installation Instructions · Download in Compiled Format · Download in Text Format
Script
tell
application
"SpamSieve"
activate
set
_windowNames
to
{"About", "Help", "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
_name
to
item
1
of
the
result
on
error
return
end
try
if
_name
is
"About"
then
set
about window's
visible
to
true
else
if
_name
is
"Help"
then
do shell script
"open 'https://c-command.com/spamsieve/help/'"
else
if
_name
is
"Blocklist"
then
set
blocklist window's
visible
to
true
else
if
_name
is
"Corpus"
then
set
corpus window's
visible
to
true
else
if
_name
is
"Preferences"
then
set
preferences window's
visible
to
true
else
if
_name
is
"Software Update"
then
set
software update window's
visible
to
true
else
if
_name
is
"Statistics"
then
set
statistics window's
visible
to
true
else
if
_name
is
"Whitelist"
then
set
whitelist window's
visible
to
true
else
if
_name
is
"Quit SpamSieve"
then
quit
else
if
_name
is
"Log"
then
edit log
end
if
end
tell