PDA

View Full Version : changing a song in itunes from javascript?


cwl157
04-21-2006, 11:35 PM
This may seem like a very strange question but is there a way to change to a random song in itunes using javascript?

Beagle
04-24-2006, 05:15 PM
Similar to the aim:// protocol, this would only be possible if your browser knew how to handle special locations like itunes:// and if itunes provided such a protocol. I don't think that this exists, but I have no idea. Beyond that, there is no other way for JavaScript to interact with any app external to the browser. (in fact, even if this did exist, it's the browser that would be interacting with the external app, javascript would just tell the browser to go to a special url)

cwl157
04-25-2006, 03:55 PM
now that you mention a way for the browser to interact with external applications, I remember an extension to firefox i think called foxytunes or something like that where you chose the music player and then you could play stop and change songs from inside the firefox browser. I think i would want something like that but instead of the user choosing to change the song it would just change automatically.

Beagle
04-25-2006, 04:24 PM
Well, yeah, but that's outside of the scope of javascript discussion really. You'd need to find an extension and ask them what their interface is like, or write your own. But then it only works in FF, and most people won't install extensions that aren't "officially" on the ff site for security reasons.

cwl157
04-25-2006, 08:48 PM
yea i know its outside of this forum but it did give me an idea. I don't think its worth persuing. I don't have the time right now.