a guest Dec 16th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "System Events"
  2.     if exists application process "Tweetbot" then
  3.         tell application process "Tweetbot"
  4.             if frontmost then
  5.                 set visible to false
  6.             else
  7.                 set frontmost to true
  8.             end if
  9.         end tell
  10.     end if
  11. end tell
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand