Twitter Undo

July 21st, 2007

There are three things you should know about Twitter:

  1. You should use Twitterrific on your Mac.
  2. You only get 140 characters to make your point.
  3. Once you’ve made your point, it can’t be edited.

It’s really frustrating when you type out a tweet quickly and send, only to realize that you’ve made an embarrassing typo or worse, said something you fundamentally regret. It’s too late, really. It’s probably already showing up on somebody’s tweet list and they’re gasping in horror. But it doesn’t have to live on in perpetuity!

While you can’t edit tweets, the folks at Twitter were kind enough to give us a sort of back-door method of editing, by allowing us to completely delete tweets that we don’t want to stick around.

So from time to time I found myself running to Twitter’s web interface after making a tweet. I’d find the little trash icon next to the item and click it. Not too much trouble, really. But I’m a Mac user, so of course I expect more.

Wouldn’t it be cool if you could undo a tweet from right in Twitterrific? You can, with my spanking new script: Undo Tweet. This script requires FastScripts by default, but can be easily modified to use “display dialog” instead of the more user-friendly FastScripts message display.

For the sake of argument, let’s say you want to use FastScripts, or its free Lite counterpart, to set up your very own “Undo Tweet” functionality in Twitterrific. Here are the easy steps, once you’ve got FastScripts installed:

  1. Download the Undo Tweet script, and open it with Script Editor to put your twitter name and password in.
  2. Open Twitterrific and click its window to make sure it’s “active,” then create an app-specific scripts folder for it with FastScripts:

  3. Drag the Undo Tweet script into the folder. Voila! You’ve got a Twitterrific-specific menu item for undoing tweets.

  4. Select the menu item while holding down the Apple/Cmd key. Make sure that cmd key is down, or you’ll undo a tweet! This is a FastScripts trick for jumping right to the keyboard shortcut editor for any script. I chose Cmd-Shift-Z for mine. Just like Undo, but with a little more trouble since deleting a tweet is serious business.

And you’re done! Rest assured you can now easily undo any tweet. Let’s see how it looks in action.

First I write an embarrassing tweet.

Oh! That was embarrassing. Quick, press cmd-shift-Z! Since deleting the tweet can take a little while, I’m glad the author of this script was thoughtful enough to put up a little status message via FastScripts:

And a few seconds later…

Phew! A few people might have seen that tweet, but at least it’s permanently erased from the embarrassing annals of internet history.

Note that because of the way Twitterrific works, it won’t disappear from the visible list. Fear not, if the Undo Tweet script says it was deleted, then it’s because Twitter’s API claims it was deleted. Don’t run the script again or you’ll delete your previous tweet!.

10 Responses to “Twitter Undo”

  1. Matt Deatherage Says:

    Note that because of the way Twitterrific works, it won”™t disappear from the visible list.

    It will if you add this to the end of the script:

  2. Matt Deatherage Says:

    (by the way, it’s really sucky to let “live preview” show something that then gets stripped out of the comment…)

    If you add this:

    tell application “Twitterrific”
    end tell

    (No formatting because the site ate it last time)

    Neither “refresh” nor “option-refresh” makes it discard deleted tweets, but when you relaunch, it gets the list fresh from the server. It takes a few seconds, and marks all tweets as unread in the window, but it works.

  3. sjk Says:

    Works for me — thanks.

  4. Daniel Jalkut Says:

    Sucks about the untrustable live preview. Thanks for the example of quit/run. Probably won’t add it for my own use but others will surely appreciate it.

  5. Daniel Jalkut Says:

    I noticed that the quit/run script is somewhat unreliable, depending on how long Twitterrific takes to quit. So I added a “delay 1.0” between the quit and the run.

  6. Kenneth Ballenegger Says:

    where can i find your twitter page, daniel?

  7. Daniel Jalkut Says:

  8. Robert Smelser Says:

    Awesome. Thanks for this!

  9. Gib Says:

    The idea of this is great. I couldn’t get it to work for me. So I’m frustrated. Too many steps were missing in your how-to. I had never heard of FastScripts, for instance. So I had to figure out that it was required and installed it first.

    I made the edits to the script, and saved, and exited all the apps. But when I tried to run it, I received an error that I had to provide my login credentials in the script.

    Step-by-step notes (or references to other documentation) would be helpful for someone who has googled and found this page and doesn’t wrangle with Apple scripts or FastScript. Heck, it might even convert a searcher into a customer.



  10. Daniel Jalkut Says:

    Thanks Gib – good points. I guess I struggle sometimes trying to write content that is appealing both to “nerdy developers” and to regular users. Obviously I would do well to appeal to the regular users, too.

    If you’re interested in fixing the script, it sounds like all you need to do now is open up the script and look for the part where your twitter name and password need to go in.

    I sometimes blog “proof of concept” ideas that are not really meant to be completely polished solutions. I would definitely classify this as one of them.

Comments are Closed.

Follow the Conversation

Stay up-to-date by subscribing to the Comments RSS Feed for this entry.