twitter icon

I’ve messed about with the twitter API before in a ham fisted sort of way (say ObliqueTweet, twitter presenter or Tweets @iowconference08) by basically borrowing various snippets of code, this is another such effort.

I notice an interesting post on Tom Smith’s theOTHERblog: Twitter, Growl, Boosh! In AppleScript!!. I’ve borrowed code from Tom before and was interested in this latest script. The script basically used growl to show tweets for a search or hashtag to be used when watch tv with a group spread over different locations. Tom’s script used the Vienna rss reader as a intermediary for handling the RSS. I recently switched from Vienna to NetNewsWire and didn’t have Vienna installed so took a slightly different approach.

I remembered that someone had mentioned that AppleScript handles xml now (via the ‘System Events’ application) and this seemed like an opportunity to mess about with that and growl.

Growltweets

I’ve cobbled together an applescript that runs and every minute, downloads the latest from a twitter search and growls them. The script is pretty rough at the moment (and in all likelihood will stay that way) but I’ve posted it for view and will upload the actual script once it looks a wee bit better.

The script might be of use in the same way Tom’s is, to display tweets over a shared experience. Or perhaps so make sure I don’t miss an @johnjohnston tweet but don’t get caught up in twitter while I am ‘working’ but really it served to give me a bit more practice with the twitter search API and in starting to learn to parse xml with AppleScript. As twitter become bigger by the second and its API continues to grow I hope one day I’ll do something useful.

twitter image Mirjami Manninen from smashingmagazine

I’ve been reading a pile of stuff about twitter over the last few months. Quite a few edubloggers around the globe have taken up tweeting in a big way. I originally thought that it would be more use to conference goers than class teachers and didn’t pay much attention.
Yesterday I saw that a facebook friend was wondering how to update his status on facebook and on twitter at the same time.
This remined me that both twitter and facebook have APIs. A bit of googling took me to ”More status updating goodness‘ where Sören provides an applescript for quicksilver to update several status messages at once, including twitter and facebook. I took the script and simplified it a bit, got rid of the quicksilver stuff other services and I am afraid removed the keychain scripting for the faster hard coded username and password.

So I am thinking of what good scripting these services would do. I guess you could combine the script to tell other twitters what you are playing in itunes, what you are reading in safari, or some other information grabbed by AppleScript either locally or via a webservice. You could run thse in an idle loop so that someone could twitter the current webpage they are reading, application they are using etc. Would this be useful? Eventually a scriptable phone could twitter its geolocation…

teachmeet07

Now I am on twitter I’d appreciate some contacts, my username is johnjohnston.
It is not all that likely I’ll be doing much tweeting for now. I do look forward to seeing it it is a useful tool at the Scottish learning festival and TeachMeet07.

Speaking of which the planning for TeachMeet07 is well under way. Check the wiki or follow everything Tagged: Teachmeet07. It looks like being a great event.