tr2itunes.pl

For anyone Googling for Total Recorder Pro, iTunes, and Perl on Windows, I’ve created tr2itunes.pl that takes a TR job name, a “show name” (i.e. whatever you want to call your recording), a duration, a path to save to, and an extension for the file (i.e. mp3) and launches a TR job, records it to a file name based on the show name and date, gives it and ID3v2 tag with the show name, and puts it in iTunes in a playlist with the name of the job as the playlist.

This basically gives you a way to schedule any web broadcast directly into your iPod.

To use Windows’ Scheduled Task functionality with this (I had trouble using Cygwin cron because it runs as a different user by default and can’t do OLE automation to iTunes), just create a task with something like the following:

“c:\Program Files\cygwin\bin\perl5.8.2.exe” “c:\Documents and Settings\Jase\My Documents\bin\tr2itunes.pl” “WBAA AM” “Acoustic Blend” “01:04:00″ “c:\Documents and Settings\Jase\My Documents\My Music\WBAA” “mp3″

This assumes your TotalRecorder.exe is in its standard install location and that you have Perl’s Win32::OLE, File::Basename, and MP3::Tag.

Please feel free to use this under the GPL
Continue Reading »