applescript . Traktor Pro Coq, , AppleScript Dictionary viewer OS X Script Editor. iTunes :
osascript -e 'tell application "iTunes" to get name of current track'
osascript -e 'tell application "iTunes" to get name of every track of current playlist'
rails ( ) :
def show
@current_track = `osascript -e 'tell application "iTunes" to get name of current track'`
end
...
<h1>The current track is: <%= @current_track -%></h1>