I sometimes listen to Internet Radio stations on iTunes (the old fashioned ones listed under 'Internet Radio'.
The official iTunes plugin does not support them, it lost Playlist support long time ago and it puts the Internet Radio Station name into the Track field.
I can however get the required metadata via Applescript (current stream title). I modified the iTunes Local Control plugin to put this information into a variable.
In other words I have a variable that holds the stream title (Artist & Song name). My question is, how do I keep this variable updated?
I need something like this: if iTunes is playing and Playlist is "Internet Radio" then update this variable with the current stream title every lets say 10 seconds. I can't use any triggers here since the iTunes device via the official iTunes plugin does not support streaming titles.
What would be a good way to have some repeat timer run conditionally while above is true and update the variable?