Twitter from TextMate | 26 Comments
Posted in Code, humour on 20th March 2007, 9:18 am by Stuart
Yep I know what you’re all thinking this is insane, a Twitter Bundle? Actually it’s not much of a bundle seeing as it only allows you to do one thing at the moment and that’s to update your status.
An idea brought to you from the freakish depths of Christian Heilmann’s crazy mind and realised by yours truly. On reflection does make some sense as now you can send twitters from TextMate it looks like you’re working!
Simply download the Twitter Bundle, unpack and double click to install the bundle. Before you can twitter you need to configure the update status command with your username and your password. The Twitter API simply uses basic auth to allow you to post new messages.
Once you have it set up, simply type some text, select and press option+t ctrl+command+t to send it to Twitter (Note: If this conflicts with anything you can change this to a key combo of your own choosing in the bundle editor). Currently you get the full response back in a tooltip but I hope to improve on this in due course. By full response I mean the whole xml reponse in all it’s geeky goodness. Now you get sensible message to say a twitter has been sent. See I told you this was nuts.
Use at your own risk. I am not responsible if you bring Twitter to it’s knees (oh hang on it already is!). Uses PHP CLI, if you don’t have PHP on your mac you’re kinda screwed (but I think macs do by default so you should be ok). If you have probs let me know and I might be tempted to re-write it in C, or something else.
Rants, comments and suggestions for improvement are welcome below. Bonus points for silliness.
Versions
- Version 0.2
- Moved to a shell script. Send from window available. Changed default command to Ctrl+Command+t
- Version 0.1
- Original Release
Todo:
- Run update status script from the background to prevent hanging TextMate
- Publish the command to show the public/friends timeline
Fear not a more comprehensive version is in the works!

Pingback: JulianSchrader.de | Editing CSS on a Mac
Pingback: RazorSharp iPods & Raw Gadgets » Blog Archive » Twitter from TextMate
Pingback: Bitelia » Publicando en Twitter desde Textmate
Pingback: Filter for 21/3 2007 - Felt
Pingback: mcdave.net » links for 2007-03-22
Pingback: Päivän linkit 22.3.2007 | Satunnainen Björklund
Pingback: TweetyPy: Python-based CLI client for Twitter | Muffin Research Labs by Stuart Colville
Pingback: Twitter Hacks » Blog Archive » Twitter from TextMate
Pingback: Everyone should have at least one Gotchi! » Hilfreiches zu Twitter
Pingback: Show your pride | The Markovian Parallax Denigrate