Welcome to codes. I plan to post a variety of mini-projects here. Eventaully, I'd like to see this interface with my subversion repository. We'll see how it goes
Back again, with another ruby/applescript thing. This one will show the currently playing iTunes track. Enjoy!
SubscribeInVienna is my first foray into using Ruby to interface with applescript. I gotta say it's pretty darned sweet. I can't think of an easier way to develop applescript than using tab completion in irb. Sidenote: I am now giving away my old applescript book, email me if you want it
This applescript queries safari for the focused document, adjusts the url, then adds it to vienna as a feed. Given that it could be done in two lines of ruby code, it seems silly to post here, but worthwhile nonetheless.
This script requires that the gem 'rubyosa' be installed.
sudo gem install rubyosaIt will work if you've compiled rubyosa without the gem, but will require a tweaking of the require statements. Further enhancements are planned.