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:
12
bin/itunes.applescript
Normal file
12
bin/itunes.applescript
Normal 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
|
||||
Reference in New Issue
Block a user