-- Open Window -- https://c-command.com/scripts/spamsieve/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 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