2 Replies Latest reply: May 6, 2008 7:20 AM by Sarkastik
s.mc410 Level 1 (0 points)
How do I get Applescript to open iTunes and play a radio station? I know I start with:

open "iTunes"

but then I don't know what to do.

MacBook, Mac OS X (10.4.11)
  • red_menace Level 6 (15,125 points)
    iTunes is a little bit strange when it comes to streams, but you can just open the URL (from the info for your stream):

    tell application "iTunes" to open location "http://radio2.digitalgunfire.com:8000"

    ... and since you posted in the Automator forum, you can make a workflow that searches for the name of your stream and starts iTunes playing, for example:

    1) Find Songs in iTunes (whose Name Contains digitalgunfire)
    2) Start iTunes Playing
  • Sarkastik Level 1 (55 points)
    I was wondering the same thing!

    I found this interesting little 'tutorial' on how to set it up. You can use it in iCal to set an alarm off that will run it, or in some other program to wake up your mac and run the script etc.


    hmm doesn't seem like we can explicitly mention a radio stream in iTunes. It is a bit of a hack.