Posted By

jeromegamez on 07/03/10


Tagged

music itunes track


Versions (?)

iTunes: Current track


 / Published in: AppleScript
 

  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 name of current track as string
  10. end if
  11. end tell
  12. end if
  13. return info
  14. end run

Report this snippet  

You need to login to post a comment.