Added iTunes current track.

Also found out that I can put each of these in separate variables and
then include them, making it easier to maintain
This commit is contained in:
Nick Nisi
2012-06-13 16:23:41 -05:00
parent 437d49175e
commit 6a300385fb
2 changed files with 28 additions and 2 deletions

12
bin/itunes.applescript Normal file
View File

@@ -0,0 +1,12 @@
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