iTunes: Current artist


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. on run
  2. set info to ""
  3. tell application "System Events"
  4. set num to count (every process whose name is "iTunes")
  5. end tell
  6. if num > 0 then
  7. tell application "iTunes"
  8. if player state is playing then
  9. set info to artist of current track
  10. end if
  11. end tell
  12. end if
  13. return info
  14. end run

Report this snippet


Comments


You need to login to view comments.