Im working on a little iTunes script which will poll iTunes for the currently playing track and then add this track to your audiogalaxy queue via agqt (fink info agqt). It works, but not for streams which was the original intent. How can I get the name of the currently playing song in the stream that iTunes is playing? iTunes definately knows the name of the track because it is scrolling across the top. Any ideas?
--begin code---
property queue_URL : "http://www.audiogalaxy.com/satellite/queue.php"
tell application "System Events"
if exists (application processes whose creator type is "hook") then
tell application "iTunes"
if player state is playing then
set foo to current track
set theArtist to artist of foo
set theTrack to name of foo
set bar to theArtist & " " & theTrack
else
display dialog "iTines not playing anything."
end if
end tell
else
display dialog "iTines is not running."
end if
end tell
display dialog "Do you want to add the song '" & theTrack & "' by '" & theArtist & "' to your Audigalaxy queue?"
do shell script "/.sw/bin/ag \"" & bar & "\""
--need code to choose user default browser
tell application "Internet Explorer"
Activate
ignoring application responses
GetURL queue_URL
end ignoring
end tell
--end code--