Created
February 9, 2014 19:40
-
-
Save ChrisLTD/8904834 to your computer and use it in GitHub Desktop.
Pull track and album from 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
tell application "iTunes" | |
if player state is playing then | |
set trackName to (get name of current track) | |
set trackArtist to (get artist of current track) | |
else | |
return | |
end if | |
end tell | |
("Listening to " & quote & trackName & quote & " by " & trackArtist & " ♫") as text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment