{"id":1646,"date":"2011-01-22T16:09:53","date_gmt":"2011-01-22T20:09:53","guid":{"rendered":"http:\/\/www.red-sweater.com\/blog\/?p=1646"},"modified":"2011-01-22T16:13:58","modified_gmt":"2011-01-22T20:13:58","slug":"toggle-twitter","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/1646\/toggle-twitter","title":{"rendered":"Toggle Twitter"},"content":{"rendered":"<p><a href=\"http:\/\/twitter.com\/danielpunkass\">I use Twitter<\/a>. A lot, and almost entirely on my Mac desktop. Over the years, I have switched between many popular client applications, often returning to old favorites when the specific advantages of one outweighs the advantages of another for my current priorities.<\/p>\n<p>The way I use Twitter is to leave one of these client applications running in the background, with all the notification settings set to off. I still check it quite often, but it&#8217;s on my terms. If I get deep into concentration working on some bug, chatting with a friend, or or watching a video, I don&#8217;t want Twitter interrupting me.<\/p>\n<p><a href=\"http:\/\/iconfactory.com\/software\/twitterrific\">Twitterrific<\/a> was the first desktop client I used, and I can&#8217;t remember whether it was the default choice or if I picked it, but I got in the habit of using the global keyboard shortcut <strong>Cmd-Ctrl-T<\/strong> to toggle the window&#8217;s visibility. When I tried other Twitter apps, I made a point of setting the preference in that app to match the same shortcut.<\/p>\n<p>Eventually I tried an app that didn&#8217;t support a setting for a global keyboard shortcut, so I had to write a script to do it for me. It occurred to me at some point that I could write a single AppleScript to handle the toggling of visibility regardless of which app I was using.<\/p>\n<p><a href=\"http:\/\/www.red-sweater.com\/AppleScript\/ToggleTwitter.zip\">Download &#8220;Toggle Twitter&#8221;<\/a><\/p>\n<p>The script logic is pretty simple: given a list of common Twitter app-names, is one of them running? If so, toggle it. If not, launch it. If you&#8217;re using something else, just add it to the list, and it should work perfectly.<\/p>\n<p>I used <a href=\"http:\/\/www.red-sweater.com\/fastscripts\/\">FastScripts<\/a> to hook this up to the global shortcut <strong>Cmd-Ctrl-T<\/strong> because it matches my historic muscle memory, and well, T is for Twitter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Twitter. A lot, and almost entirely on my Mac desktop. Over the years, I have switched between many popular client applications, often returning to old favorites when the specific advantages of one outweighs the advantages of another for my current priorities. The way I use Twitter is to leave one of these client [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6,12],"tags":[],"class_list":["post-1646","post","type-post","status-publish","format-standard","hentry","category-applescript","category-fastscripts","category-usability"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/1646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/comments?post=1646"}],"version-history":[{"count":6,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/1646\/revisions"}],"predecessor-version":[{"id":1652,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/1646\/revisions\/1652"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=1646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=1646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=1646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}