Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Applescript, iTunes and Audiogalaxy

Applescript, iTunes and Audiogalaxy
Thread Tools
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
May 6, 2002, 06:45 AM
 
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--
3R1C
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:54 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2