Skip to content

Instantly share code, notes, and snippets.

@toabi
Created May 8, 2010 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save toabi/394181 to your computer and use it in GitHub Desktop.
Save toabi/394181 to your computer and use it in GitHub Desktop.
update LadioCast meta data with current iTunes song. Polls every 15 seconds.
set lastName to ""
set lastArtist to ""
repeat
tell application "iTunes"
set trackName to name of current track
set trackArtist to artist of current track
end tell
if trackName is not lastName and trackArtist is not lastArtist then
set lastName to trackName
set lastArtist to trackArtist
tell application "LadioCast"
set metadata song to trackName & " - " & trackArtist
end tell
end if
delay 15
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment