Permalink
Browse files

Add meat

  • Loading branch information...
1 parent 82d50d2 commit 61822e82a6f9fe7cf57448c6df6eb70154a7632a @vinbarnes committed Sep 16, 2008
Showing with 12 additions and 0 deletions.
  1. +12 −0 twitter_track.rb
View
@@ -0,0 +1,12 @@
+require 'rubygems'
+require 'appscript'
+include Appscript
+
+USER = '<your_name_goes_here>'
+PASSWD = '<your_topsecret_password_goes_here>'
+
+itunes = app('iTunes')
+track = itunes.current_track.name.get
+artist = itunes.current_track.artist.get
+post = "listening to '#{track}' by #{artist}"
+result = %x[curl -u #{USER}:#{PASSWD} -d status="#{post}" http://twitter.com/statuses/update.json]

0 comments on commit 61822e8

Please sign in to comment.