The previous version didn’t work properly if you triggered it and TweetBot for Mac wasn’t already running. Now that I’m using Marco Arment’s Quitter and TweetBot is being killed all the time, I was running into this bug a lot. The new update to the action fixes it.
if application "Tweetbot" is not running then tell application "Tweetbot" to launch return false else return true end if
And here’s a line in the action’s main script that calls out to it:
var tweetbotIsOpen = LaunchBar.executeAppleScriptFile("open-tweetbot.scpt")
tweetIsOpen var. If you look at the full code, you’ll see that I’m not actually doing anything with the
tweetIsOpen var. The reason for this is that I thought I might have to wait a second after opening TweetBot before sending it a URL to open. Turns out that isn’t necessary. ?