Skip to content

Instantly share code, notes, and snippets.

@bjhomer
Created September 27, 2011 16:19
Show Gist options
  • Save bjhomer/1245520 to your computer and use it in GitHub Desktop.
Save bjhomer/1245520 to your computer and use it in GitHub Desktop.
Getting the current track in iTunes
#! /usr/local/bin/macruby
framework "ScriptingBridge"
iTunes = SBApplication.applicationWithBundleIdentifier("com.apple.iTunes")
iTunes.currentTrack.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment