I have the following code I did for a tweetbot keyboard shortcut to open tweetbot and create a new tweet.
on run {input, parameters}
activate application "Tweetbot 2"
tell application "System Events" to keystroke "n" using command down
return input
end run
However, it always opens a new window for anything that is run in the background as well. This only happens when Tweetbot is not already running.
How can I fix this ?
