Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I get Applescript to open iTunes and play a radio station?

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)

Posted on Apr 13, 2008 3:58 AM

Reply
Question marked as Best reply

Posted on Apr 13, 2008 9:21 AM

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
2 replies
Question marked as Best reply

Apr 13, 2008 9:21 AM in response to s.mc410

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

May 6, 2008 7:20 AM in response to s.mc410

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.

http://dougscripts.com/itunes/itinfo/icalscripts.php

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

How do I get Applescript to open iTunes and play a radio station?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.