And the world rejoiced! Not only is there an iTunes for Windows now, iTunes finally reports the title of the song currently playing in the stream.
This means that we can finally somewhat obtain information to log whist streaming.
The easiest way to obtain this data is to ensure that it’s actually there. A quick snippit:
try tell application “iTunes” if current stream title is not missing value then set currentSong to current stream title as string end if end tell end tryNote that this lacks provisions for any artist, title, et al. I suppose, were one interested, they could attempt to split for whitespace, using ” – ”, ”, ”, ” : ”, et al as string seperators, but it’d almost make more sense trying to parse this OUTSIDE of AppleScript – for various reasons. Myself, I’ve spent about a half hour, creating a ‘strip/join’ function, and have decided that there is no plasuable way of obtaining this information across different streams.
Still, I can log it as a glob now. Woohoo! ;)