/ Published in: AppleScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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 info to name of current track as string end if end tell end if return info end run