David Ferguson

RSS

AlfredTweet

Introduction

Alfred is a productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. The Powerpack is a set of incredibly powerful features, built on top of the robust core of Alfred. Deeply integrated with OS X, it will make you more productive that ever!

What is AlfredTweet?

AlfredTweet is a new way to interact with Twitter via Alfred. The previous method of using console_tweet, while sufficient for some, proved to be a little daunting for some users, especially if you didn’t already have the developer tools installed that were required to build it. AlfredTweet provides a simple extension to interact with Twitter including: 

  • Sending tweets
  • Sending direct messages
  • Following/unfollowing
  • Blocking/unblocking
  • View timeline, mentions.
  • and more …

Setting Up AlfredTweet

This was the most important area. If I couldn’t make this dead simple, it might as well have not been done at all. I made setup a two step process. Step one, authenticate to Twitter. Step two, enter your pin number. Setup is done this way so that you are assured I’m not doing anything tricky with your username and password. You are authenticating to Twitter, not me/the extension. This extension requires Growl for all functions to work properly. Growl is required for using a lot of this extensions functionality.

To setup AlfredTweet, install the extension (of course), and then in Alfred, type ‘tw setup’ and press Enter. A browser window will open and you will authenticate to Twitter. After authentication, Twitter will give you a pin number. Copy this pin number. Then in Alfred, type ‘tw pin <your pin number>’. Do not include the <>’s around the pin number. You will see a message that the extension is authenticating to Twitter, and then a confirmation message informing you when the extension is ready.

Whats new in 1.5:

  • #Nowplaying now supports Sonora!
  • Added ability to change #Nowplaying tweet text
  • Tinysong.com urls in #Nowplaying tweets
  • Fixed a bug when splitting long tweets

How to use

AlfredTweet’s commands are pretty simple and self explanatory. Here they are:

  • tw setup - Initiate setup
  • tw pin <pin number> - Save pin number
  • tw <tweet> - Send new tweet
  • tw tweets - List the last 5 tweets in your home timeline
  • tw mentions - List your last 5 mentions
  • tw dm <user> <text> - Send a direct message to the specified user
  • tw info <user> - Look up user info
  • tw follow <user> - Follow specified user
  • tw unfollow <user> - Unfollow specified user
  • tw create <name> - Create a new list
  • tw delete <name> - Delete the specified list
  • tw lists - Display all lists
  • tw add <user> <list> - Add user to list
  • tw remove <user> <list> - Remove user from list
  • tw block <user> - Block the specified user
  • tw unblock <user> - Unblock the specified user
  • tw search <term> - Search Twitter for the specified term (results in Growl)
  • tw split <on/off> - Turn off tweet splitting
  • tw playing - Tweet current song
  • tw set <command> <new> - Change command keyword. See below for command list
  • tw reset - Reset all authentication info

Download

Download AlfredTweet

More Extensions

For more of my extensions and many others, check out the new Alfred Support site.

Command List:

Use these keywords to set the corresponding command keyword.

  • tweets_command
  • mentions_command
  • dm_command
  • info_command
  • follow_command
  • unfollow_command
  • create_command
  • delete_command
  • lists_command
  • add_command
  • remove_command
  • block_command
  • unblock_command
  • search_command
  • playing_command
  • playing_format

Use these command names with the “set” command to change the keyword for that command. For instance, to change the keyword for the “Now Playing” function to play, you wold type “tw set playing_command play”.

Changing the #Nowplaying text:

To change the #Nowplaying text, use the set function with the playing_format command. Keywords will be replaced with track data.

Example:

tw set playing_format #Nowplaying @song by @artist in @player @url.

Available keywords are:

  • @song - Current song name
  • @artist - Current artist name
  • @player - Current player name
  • @url - Tinysong.com url for song

Setting a hotkey to Now Playing:

To set a hotkey to the Now Playing feature, go to Alfred’s Hotkey tab, create a new hotkey, type will be Extension->Shell Script. Then on the right side, choose the AlfredTweet extension, and set the Argument value to the keyword for the Now Playing feature. If you haven’t changed this keyword with the set command, it will be “playing” as shown in the preview below.