This Week's Sponsor:

Collections Database

A Powerful Database with iCloud Sync


Toggle Any Twitter Client On Your Mac

Toggle Twitter is a simple and useful script created by Daniel Jalkut of Red Sweater Software which can toggle and make visible most any Twitter client for OS X. Well, at least it comes with built-in support for the most popular ones. The concept behind the script goes like this: we try a lot of Twitter clients every week, or month. Many of us even use multiple clients throughout the day. The problem is, not every client has support for a general hotkey to toggle the visibility of the app.

So if you’re using Twitterrific or Twitter for Mac and you assigned the same keyboard shortcut to both the apps to show them when active, you’d be disappointed to find that other Twitter clients don’t allow you to assign a hotkey. This script comes with a list of popular Twitter apps, but you can add your favorite ones manually with a bit of AppleScript Editor. The ones supported “out of the box” are:  Twitter, Tweetie, Kiwi, Ostrich, Twitterrific, Hibari and YoruFukurou.

Daniel Jalkut explains:

Twitterrific was the first desktop client I used, and I can’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 Cmd-Ctrl-T to toggle the window’s visibility. When I tried other Twitter apps, I made a point of setting the preference in that app to match the same shortcut.

Eventually I tried an app that didn’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.

Personally, I’ve created a keyboard shortcut for the script in Apptivate, and it works great. You can do the same in Fastscripts, or any other utility that can match hotkeys with scripts. To edit the script and add more Twitter clients, just double click on it and AppleScript Editor should open. After that, add the name of your client of choice with the same style of the ones already present in the code.

Unlock More with Club MacStories

Founded in 2015, Club MacStories has delivered exclusive content every week for over six years.

In that time, members have enjoyed nearly 400 weekly and monthly newsletters packed with more of your favorite MacStories writing as well as Club-only podcasts, eBooks, discounts on apps, icons, and services. Join today, and you’ll get everything new that we publish every week, plus access to our entire archive of back issues and downloadable perks.

The Club expanded in 2021 with Club MacStories+ and Club Premier. Club MacStories+ members enjoy even more exclusive stories, a vibrant Discord community, a rotating roster of app discounts, and more. And, with Club Premier, you get everything we offer at every Club level plus an extended, ad-free version of our podcast AppStories that is delivered early each week in high-bitrate audio.

Choose the Club plan that’s right for you:

  • Club MacStories: Weekly and monthly newsletters via email and the web that are brimming with app collections, tips, automation workflows, longform writing, a Club-only podcast, periodic giveaways, and more;
  • Club MacStories+: Everything that Club MacStories offers, plus exclusive content like Federico’s Automation Academy and John’s Macintosh Desktop Experience, a powerful web app for searching and exploring over 6 years of content and creating custom RSS feeds of Club content, an active Discord community, and a rotating collection of discounts, and more;
  • Club Premier: Everything in from our other plans and AppStories+, an extended version of our flagship podcast that’s delivered early, ad-free, and in high-bitrate audio.