Applescript to 'click' a javascript link from a page in Safari

Hi all,
I’m trying to write an applescript that’ll automatically open a connection to a college radio station for me to listen to.

But in otder to do that, I’ve gotta get Applescript to tell Safari to go to this page:
http://www.uclaradio.com/

Then ‘click’ the “Listen Live” link. (I’ve figured out that the link can be gotten by doing this javasscript: “document.links[1].href” )
Then choose quicktime player from the drop-down menu in the new window that opens.

Where I’m stuck is that the “Listen Live” link itself a javascript:
“%20window.open(%22http://www.bruinwalk.com/uclaradio/listen/listen.asp%22,%22listen%22,%22width=208,height=398,scrollbars=no,location=no,resizable=no,status=no,titlebar=no,menubar= no%22);%20void%200;”

I’ve tried telling Safari to just do that javascript in the same document as the uclaradio.com URL is opened in, but nothing happens. Tried telling Safari to set the URL of the front document to that javascript, and I get an error message saying that: “Safari doesn’t allow JavaScript to be used in this way”

Anyone have any ideas on how to do this?
Thanks!

Hi UniAce,

Often, there is a url that you can play with iTunes. You can download the url here:

http://uclaradio.com/listen-live/

and use it in iTunes. After you enter it in iTunes, you can easily script it to play.

gl,