Skip to content

Instantly share code, notes, and snippets.

@jmjeong
Created December 29, 2009 06:14
Show Gist options
  • Save jmjeong/265180 to your computer and use it in GitHub Desktop.
Save jmjeong/265180 to your computer and use it in GitHub Desktop.
(defun current-itunes-song ()
(interactive)
(message
(do-applescript
"tell application \"iTunes\"
set currentTrack to the current track
set artist_name to the artist of currentTrack
set song_title to the name of currentTrack
return artist_name & \" - \" & song_title
end tell")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment