on run
set info to ""
tell application "System Events"
set num to count (every process whose name is "iTunes")
end tell
if num > 0 then
tell application "iTunes"
if player state is playing then
set what to name of current track
set info to what as string
end if
end tell
end if
return info
end run
on run
set info to ""
tell application "System Events"
set num to count (every process whose name is "iTunes")
end tell
if num > 0 then
tell application "iTunes"
if player state is playing then
set onwhat to album of current track
set info to onwhat as string
end if
end tell
end if
return info
end run