Use iCal to schedule recording of WMA radio streams
Sep 02, '05 08:47:00AM
Contributed by: stevechiu
After seeing this hint, I thought it should be possible to use iCal to schedule recording of WMA radio streams. With a bit of trial and error, I have put together an AppleScript to do just that. I think I should make my contribution to MacOSXHints as well, so here's the hint...
Installation:
- Install VLC.
- Save this script in ~/Library/Scripts, the normal spot for saving personal scripts. Name it 'Record Radio.scpt'
- In iCal, create a new calendar called 'Record Radio'
To schedule a recording:
- Create a new event under 'Record Radio' whose From and To covers the actual period you want to record.
- Enter the station name into event name, e.g. CR1, RTHK2, or enter the mms:// URL into the URL field. In this case, the event name can be anything.
- Set alarm to Run Script, and point it to the Record Radio script, set to '0 minutes before.'
When the iCal event kicks off, it will:
- Start VLC to record in AAC format.
- Import the recording into iTunes afterwards.
- Clean up the temp recording file.
Optional step: You will not be able to use iCal when the script is running. To get around this, you can:
- In Script Editor, save the script as an application. Do not forget to uncheck the 'Start Screen' option.
- In the iCal event, set alarm to Open File, and point to the new Record Radio.app you just created, at '0 minutes before.'
As this is my first ever AppleScript, any suggestions to make it better would be very welcome.
Comments (7)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050829143353677