Twittering with Growl
Posted on : 23-02-2009 | By : Andy | In : fun, tech
Tags: growl, mac, os x, ruby, terminal, tiger, twitter
0
If you’re comfortable with trying to use Terminal (or curious to start), you can get your twitter updates via growl on OS X. If you don’t know what growl is, you’re really missing out. Get it here — it updates you unobtrusively with program status messages that might typically show up in a popup box or embedded into a program window, or not at all.
Once you’ve got growl, you’ll need to make sure you have Ruby 1.8.3 or higher.
You’ll also need MacPorts to make this work right: Install MacPorts
- If you have 10.5 Leopard, you’re set
- If you have 10.4 Tiger, you’ll probably need to update:
- Open a Terminal window and type in the following command, hitting return at the end:
sudo port install ruby
- Open a Terminal window and type in the following command, hitting return at the end:
Now, we’ll install some stuff that we need for our script to run. Using terminal, enter these commands (Hit return after each one)
sudo port install rb-rubygems
sudo gem install xml-simple
sudo gem install ruby-growl
(If the “gem” commands don’t work, you may need to restart terminal before running them)
Provided this all went well, you should be ready to install the script. Download the Squawk Scriptand move it into your home directory (looks like a house in finder if you’re totally lost here). This file is thanks to damien, but I had to make a tweak for it to all work right. You have to edit the file with your login info:
sudo pico ~/squawk.rb
It should be obvious where to put your email address and password.
Finally, run your script!
ruby squawk.rb
If you want to run it in the background on startup, check back later. I’ll be posting on this shortly.



