Revision: 28711
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 13, 2010 03:33 by pdxmph
Initial Code
#!/usr/bin/env ruby require "rubygems" require "appscript" include Appscript itunes = app("iTunes") things = app("Things") list = "Things to Look Up" project = things.projects[list] todos = things.to_dos track = itunes.current_stream_title.get url = itunes.current_stream_URL.get source = itunes.current_track.name.get unless todos[its.name.eq(track)].get.length > 0 task = things.make(:at => project.beginning, :new => :to_do, :with_properties => { :name => track, :tag_names => "music,#{source}", :notes => "Heard at [url=#{url}]#{source}[/url]" }) end
Initial URL
Initial Description
Initial Title
Make a Things Todo Out of the Current iTunes Net Radio Track
Initial Tags
ruby
Initial Language
Ruby