nil.enroll(aetheric_username, quantum_class_id) (adric) wrote,
nil.enroll(aetheric_username, quantum_class_id)

  • Location:
  • Music:

Ruby and Mac scripting (rubyosa)

Check out this: "RubyOSA: The End of AppleScript?"
which links to: "Rake Shame"
and from which I scrawled song.rb:
require '~/Work/rubyosa/osa.bundle'
require '~/Work/rubyosa/rbosa.rb'

itunes ='itunes')
track = itunes.current_track

p track.artist + " - " +
With which and a dash of alias song="ruby ~/Work/song.rb" I now have a song command for posting to LJ:
song | pbcopy ... complete with Unicode escapes that no one likes, apparently...
and this with some inevitability leads to:
tunes ='itunes')
ducktroller ='adium').adium_controller
ducktroller.my_status_message= tunes.current_track.artist + " - " +
.. which I'll shortly thrown in cron..
Tags: mac, ruby, rubyosa, scripting

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded