Created
September 27, 2011 16:19
-
-
Save bjhomer/1245520 to your computer and use it in GitHub Desktop.
Getting the current track in iTunes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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