Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Load NPR's morning news show via AppleScript Internet
I like listening to NPR in the morning via my AirPort-enabled PowerBook, which reposes in the kitchen. However, it's a bit of a pain to get to the shows via the website, and I want them ready to go when I reach the kitchen. So I created this AppleScript to help with the process. It assumes you're using Safari to browse the web and RealOne Player to listen to web-based audio.

The Mac starts up at a set time in the morning and runs the script at startup. The script loads the morning news program (Morning Edition or Weekend Edition), as well as the All Things Considered page, then proceeds to load the morning program in RealOne Player and pause it. With a KeySpan USB remote control on the kitchen counter, one hit of the play button starts up the morning's news, regardless of the actual time of day (which is kind of odd if it's 5pm!).

To make the script, I borrowed some AppleScript code from dasboy in this hint, as well as jspivack in this hint. Compile it in Script Editor and set it as a startup item; have the news waiting for you as you sip your coffee.

[robg adds: I haven't tested the script...]
    •    
  • Currently 1.88 / 5
  You rated: 3 / 5 (8 votes cast)
 
[7,142 views]  

Load NPR's morning news show via AppleScript | 8 comments | Create New Account
Click here to return to the 'Load NPR's morning news show via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Load NPR's morning news show via AppleScript
Authored by: arfung on Jan 04, '07 08:32:24AM

Great hint. I love that you can go to RealPlayer's Now Playing Menu and see the titles of all of the segments and listen to the ones you want, in the order that you want.



[ Reply to This | # ]
Load NPR's morning news show via AppleScript
Authored by: macawm on Jan 04, '07 08:07:44PM

I love this hint. Applescript is the way to get things done on a mac. Now can some please tell me why they (Apple) created that waste of hard drive called Automator?



[ Reply to This | # ]
Load NPR's morning news show via AppleScript
Authored by: kerouassady on Jan 04, '07 11:20:30PM
I've been using my Mac as a clock radio for years, but I hate using RealPlayer for anything. Fortunately, my local NPR station broadcasts an MP3 stream.

tell application "iTunes"
	activate
	open location "http://audio-mp3.ibiblio.org:8000/wunc"
end tell
I save that as a script and use the following command in Cronnix to automatically start the stream.

osascript /Users/alexhoward/Library/Scripts/Radio/WUNCStreamX.scpt


[ Reply to This | # ]
Load NPR's morning news show via AppleScript
Authored by: WAW401 on Jan 09, '07 08:27:17PM
I too agree a local NPR's stream is the way to go ..

set volume output volume 70
tell application "iTunes"
play track "WNYC - AM: New York Public Radio" of playlist "Online Radio"
end tell

The nice thing is this will play even if the item is not checked, and therefore possibly excluded from iPod syncing

Of course part two is the Wake-up calendar event in iCal
- Repeat = every weekday
- Alarm = Run script ...

[ Reply to This | # ]

Load NPR's morning news show via AppleScript
Authored by: wburch16509 on Jan 08, '07 01:17:27AM

Not really related to the applescript idea but for the last year, I've recorded NPR ATC, Morning, Fresh Air, and OnPoint from my local PBS station with RadioShark. I picked it up cheap at MediaPlay while they were going out of business in our area and it's worked like a charm. Only thing that I find irritating about RadioShark is that it won't allow my mac screen to sleep when it is active. Otherwise, I love it!



[ Reply to This | # ]
Radioshark
Authored by: tonyo on Jan 08, '07 08:49:12AM

I, too, have a Radioshark. I tend to think of it as my Radio Tivo as I'm just as hooked on it as I am to my Tivo. I was previously using a combo of RealPlayer and Audio Hijack Pro, and I despise RealPlayyer, so it was great to get a solution that dumps Real Audio AND gives me so much more flexibility (pause and rewind, for example).
I have the 1.0 version, and will soon be updating to the new 2.0. It's an awesome product. Get thee to Griffin and check it out.



[ Reply to This | # ]
Radioshark
Authored by: osxpounder on Feb 09, '07 11:41:13AM

I have a RadioShark v1, too. It was great til they "updated" the software to prevent it from recording AAC streams at bit rates higher than 160. I went back to the old, buggy software, because it was able to schedule recordings to 320kbps AAC files, and the few fixes the new version offered weren't working anyway [it still occasionally makes a huge QuickTime file, then fails to finish changing that into your scheduled recording, leaving you with a huge file you can't open and must delete]. Since the new software didn't fix the prob, but took away features I used, I was glad it was possible to re-install the older version.

I wrote to Griffin a few times about the huge-file problem [they had no suggestions] and asking about the lower bit rate offerings in the newer software version, as in, could they be put back, please? [they simply didn't reply].

As long as mine works as well as it's done, I'll keep it, but if/when it no longer works, I'll shop around next time for an alternative. Who knows, it still might be the best solution -- but it's been better, in the past, than it is today.



[ Reply to This | # ]
Audio Hijack Pro is my Internet Radio TiVo
Authored by: Steve Hoge on Feb 12, '07 12:25:20PM

I use timed recordings made by Audio Hijack Pro to do the same thing, in my case telling iTunes to tap a particular realtime internet radio stream (KQED is quite reliable) during the times Morning Edition is being broadcast, ie 3AM to 5AM. AHP also has nice facilities for making the recordings bookmarkable, adding them to specific areas of your iTunes library for later playback ,etc.



[ Reply to This | # ]