Files
dotfiles/bin/itunes.applescript
Nick Nisi 165fdac07b [tmux] Added music symbol, updated interval
+ added music symbold to spotify/itunes scripts
+ changed refresh interval from 5 seconds to 20 seconds
2012-06-16 19:50:14 -05:00

13 lines
331 B
AppleScript

if application "iTunes" is running then
tell application "iTunes"
if exists current track then
set theName to the name of the current track
set theArtist to the artist of the current track
try
return "♫ " & theName & " - " & theArtist
on error err
end try
end if
end tell
end if