Toggle Tweetbot Visibility
Summary: Hides Tweetbot if it’s shown, shows and activates it if it’s hidden.
Requires: Tweetbot
Install Location: ~/Library/Scripts/
Last Modified: 2019-10-02
Description
Tweetbot 2.1 has a bug where setting the Global Show/Hide hotkey doesn’t always work. And, if the hotkey is set, Tweetbot crashes when it’s invoked. This script reimplements the hotkey’s functionality, and you can assign your same keyboard shortcut using FastScripts.
Installation Instructions · Download in Compiled Format · Download in Text Format
Script
tell
application
"System Events"
-- Alas, Tweetbot is not scriptable.
tell
application process
"Tweetbot"
set
visible
to
not
visible
if
visible
then
tell
application
"Tweetbot"
to
activate
end
tell
end
tell