{
  "attachments": [],
  "comments_archived": true,
  "date": "2002-09-20T21:17:25.000Z",
  "layout": "post",
  "title": "I'm finally timeshifting radio again",
  "wordpress_id": 260,
  "wordpress_slug": "ooobhd",
  "wordpress_url": "http://www.decafbad.com/blog/?p=260",
  "year": "2002",
  "month": "09",
  "day": "20",
  "isDir": false,
  "slug": "ooobhd",
  "type": "entry",
  "postName": "2002-09-20-ooobhd",
  "html": "<p>Today's bundle of little discoveries:</p>\n<ul>\n<li> <a href=\"http://www.pth.com/DSBRTuner/\">DSBRTuner</a> has been updated to support <a href=\"http://www.decafbad.com/twiki/bin/view/Main/AppleScript\">AppleScript</a> since last I downloaded it.\n</li>\n<li> <a href=\"http://www.pth.com/DSBRTuner/\">DSBRTuner</a> has been updated to record to MP3 on disk.\n</li>\n<li> <a href=\"http://www.decafbad.com/twiki/bin/view/Main/MacOSX\">MacOSX</a> has a command called <code>osascript</code> with which you can launch <a href=\"http://www.decafbad.com/twiki/bin/view/Main/AppleScript\">AppleScripts</a> (among other things) from a shell.\n</li>\n<li> Like <code>perl</code>, <code>osascript</code> has an option <code>-e</code> to run a one-liner from the shell.\n</li>\n</ul>\n\n\n\n\n\n<p>Given these discoveries, I was able to cobble together a quick pair of scripts with which to schedule recording radio broadcasts to MP3 via cron.</p>\n<p>Wow.  Another little project that became, all of a sudden, so much easier than I thought.  I love Unix and OS X.  Before this, I'd been looking high and low for all the parts:  a scheduler, a sound recorder, an app controller, etc &amp; so forth.  Given the source code to DSBRTuner, I was almost about to hack some solutions into it, but I'd never gotten the time.</p>\n<p>Now, I can happily record and listen to my favorite late Sunday night radio show during the week again!</p>\n<p>Oh yeah, and the ugly scripts:</p>\n<ol>\n<li>dsbr_start_recording<pre>#!/bin/sh\nFREQ=$1\nMP3_FN=\"$2-`date \"+%Y%m%dT%H%M%S\"`.mp3\"\nOSA=/usr/bin/osascript\nTELL='tell application \"DSBRTUNER\" to'</pre></li>\n</ol>\n<p>open /Applications/DSBRTuner.app\n$OSA -e \"$TELL set frequency to $FREQ\"\n$OSA -e \"$TELL record to file \"$MP3_FN\"\"</p>\n<ol start=\"2\">\n<li>dsbr_stop_recording<pre>#!/bin/sh\nOSA=/usr/bin/osascript\nTELL='tell application \"DSBRTUNER\" to'</pre></li>\n</ol>\n<p>open /Applications/DSBRTuner.app\n$OSA -e \"$TELL stop recording\"\n$OSA -e \"$TELL quit\"</p>\n<!--more-->\n\n\n<p>shortname=ooobhd</p>\n<div id=\"comments\" class=\"comments archived-comments\"><h3>Archived Comments</h3>\n<ul class=\"comments\">\n<li class=\"comment\" id=\"comment-221089849\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://shawnyeager.com/monolog/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=546b2f1947278db93fa8f7c734876111&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://shawnyeager.com/monolog/\">Shawn</a>\n</div>\n\n\n<p><a href=\"#comment-221089849\" class=\"permalink\"><time datetime=\"2002-09-20T19:33:08\">2002-09-20T19:33:08</time></a></p>\n</div>\n\n\n<div class=\"content\">Damnation, that's cool as all hell.  As you said, UNIX and OS X rock.</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221089851\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.redmonk.net\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=f5d280e17d5f7340d7d1dc6728c5a335&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.redmonk.net\">Steve Ivy</a>\n</div>\n\n\n<p><a href=\"#comment-221089851\" class=\"permalink\"><time datetime=\"2002-09-20T19:52:25\">2002-09-20T19:52:25</time></a></p>\n</div>\n\n\n<div class=\"content\">Heh, One more example of poking our computers into everyday life again. This is awesome.</div>\n\n\n</li>\n</ul>\n\n\n</div>\n\n\n",
  "body": "Today's bundle of little discoveries:\r\n<br /><br />\r\n<ul>\r\n<li> <a href=\"http://www.pth.com/DSBRTuner/\">DSBRTuner</a> has been updated to support <a href=\"http://www.decafbad.com/twiki/bin/view/Main/AppleScript\">AppleScript</a> since last I downloaded it.\r\n</li>\r\n<li> <a href=\"http://www.pth.com/DSBRTuner/\">DSBRTuner</a> has been updated to record to MP3 on disk.\r\n</li>\r\n<li> <a href=\"http://www.decafbad.com/twiki/bin/view/Main/MacOSX\">MacOSX</a> has a command called <code>osascript</code> with which you can launch <a href=\"http://www.decafbad.com/twiki/bin/view/Main/AppleScript\">AppleScripts</a> (among other things) from a shell.\r\n</li>\r\n<li> Like <code>perl</code>, <code>osascript</code> has an option <code>-e</code> to run a one-liner from the shell.\r\n</li>\r\n</ul>\r\n<br /><br />\r\nGiven these discoveries, I was able to cobble together a quick pair of scripts with which to schedule recording radio broadcasts to MP3 via cron.\r\n<br /><br />\r\nWow.  Another little project that became, all of a sudden, so much easier than I thought.  I love Unix and OS X.  Before this, I'd been looking high and low for all the parts:  a scheduler, a sound recorder, an app controller, etc &amp; so forth.  Given the source code to DSBRTuner, I was almost about to hack some solutions into it, but I'd never gotten the time.\r\n<br /><br />\r\nNow, I can happily record and listen to my favorite late Sunday night radio show during the week again!\r\n<br /><br />\r\nOh yeah, and the ugly scripts:\r\n<br /><br />\r\n1) dsbr_start_recording\r\n<pre>#!/bin/sh\r\nFREQ=$1\r\nMP3_FN=\"$2-`date \"+%Y%m%dT%H%M%S\"`.mp3\"\r\nOSA=/usr/bin/osascript\r\nTELL='tell application \"DSBRTUNER\" to'\r\n\r\nopen /Applications/DSBRTuner.app\r\n$OSA -e \"$TELL set frequency to $FREQ\"\r\n$OSA -e \"$TELL record to file \"$MP3_FN\"\"</pre>\r\n<br /><br />\r\n2) dsbr_stop_recording\r\n<pre>#!/bin/sh\r\nOSA=/usr/bin/osascript\r\nTELL='tell application \"DSBRTUNER\" to'\r\n\r\nopen /Applications/DSBRTuner.app\r\n$OSA -e \"$TELL stop recording\"\r\n$OSA -e \"$TELL quit\"</pre>\r\n<!--more-->\r\nshortname=ooobhd\r\n\r\n<div id=\"comments\" class=\"comments archived-comments\">\r\n            <h3>Archived Comments</h3>\r\n            \r\n        <ul class=\"comments\">\r\n            \r\n        <li class=\"comment\" id=\"comment-221089849\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://shawnyeager.com/monolog/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=546b2f1947278db93fa8f7c734876111&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://shawnyeager.com/monolog/\">Shawn</a>\r\n                </div>\r\n                <a href=\"#comment-221089849\" class=\"permalink\"><time datetime=\"2002-09-20T19:33:08\">2002-09-20T19:33:08</time></a>\r\n            </div>\r\n            <div class=\"content\">Damnation, that's cool as all hell.  As you said, UNIX and OS X rock.</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221089851\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.redmonk.net\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=f5d280e17d5f7340d7d1dc6728c5a335&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.redmonk.net\">Steve Ivy</a>\r\n                </div>\r\n                <a href=\"#comment-221089851\" class=\"permalink\"><time datetime=\"2002-09-20T19:52:25\">2002-09-20T19:52:25</time></a>\r\n            </div>\r\n            <div class=\"content\">Heh, One more example of poking our computers into everyday life again. This is awesome.</div>\r\n            \r\n        </li>\r\n    \r\n        </ul>\r\n    \r\n        </div>\r\n    ",
  "parentPath": "./content/posts/archives/2002",
  "path": "2002/09/20/ooobhd",
  "summary": "Today's bundle of little discoveries:\n\n DSBRTuner has been updated to support AppleScript since last I downloaded it.\n\n DSBRTuner has been updated to record to MP3 on disk.\n\n MacOSX has a command called osascript with which you can launch AppleScripts (among other things) from a shell.\n\n Like perl, osascript has an option -e to run a one-liner from the shell.\n\n\n\n\n\n\n\nGiven these discoveries, I was able to cobble together a quick pair of scripts with which to schedule recording radio broadcasts to MP3 via cron.\nWow.  Another little project that became, all of a sudden, so much easier than I thought.  I love Unix and OS X.  Before this, I'd been looking high and low for all the parts:  a scheduler, a sound recorder, an app controller, etc & so forth.  Given the source code to DSBRTuner, I was almost about to hack some solutions into it, but I'd never gotten the time.\nNow, I can happily record and listen to my favorite late Sunday night radio show during the week again!\nOh yeah, and the ugly scripts:\n\ndsbr_start_recording#!/bin/sh\nFREQ=$1\nMP3_FN=\"$2-`date \"+%Y%m%dT%H%M%S\"`.mp3\"\nOSA=/usr/bin/osascript\nTELL='tell application \"DSBRTUNER\" to'\n\nopen /Applications/DSBRTuner.app\n$OSA -e \"$TELL set frequency to $FREQ\"\n$OSA -e \"$TELL record to file \"$MP3_FN\"\"\n\ndsbr_stop_recording#!/bin/sh\nOSA=/usr/bin/osascript\nTELL='tell application \"DSBRTUNER\" to'\n\nopen /Applications/DSBRTuner.app\n$OSA -e \"$TELL stop recording\"\n$OSA -e \"$TELL quit\"",
  "needsBuild": true,
  "prevPostPath": "2002/09/20/ooobhc",
  "prevPostTitle": "Personal contact data aggregators?",
  "nextPostPath": "2002/09/20/ooobhf",
  "nextPostTitle": "The line between man and machine"
}