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

An AppleScript to encode, tag, and upload podcasts System
Applications like Audio Hijack Pro, Audacity, and GarageBand 3 make creating and editing podcasts on the Mac remarkably easy. However, once you're done creating and editing the content, you always end up spending a fair bit of time encoding it to MP3, adding ID3 tags, and uploading it to your host.

That's why wrote this AppleScript, which does those three things automatically. Note that you can also find this script here on LibSyn.

It requires installation of the LAME binary from their downloads page, which in turn requires Xcode, which can be installed from your OS X install disc, or downloaded from Apple's Developer Connection website (free account required). It also requires that a few paths be customized within the AppleScript.

When the script is run, it asks you for an input file, which must be lossless -- AIFF or WAV would work. (It is important to do a dry run to make sure that your files will encode properly. Audio Hijack Pro, for example, produces AIFC files with .aiff extensions which do not encode properly.) The script then asks you for an output file name and an episode name. It then creates an MP3-encoded file called deleteme.mp3 in a directory that you specify, imports it into iTunes, adds ID3 tags (including, optionally, a photo), and uses curl to upload it to LibSyn. If you have an account elsewhere, obviously, the command can be changed accordingly. Finally, it deletes deleteme.mp3.

When it's done, two copies have been generated -- the one in your iTunes library and the one on the remote server.

It's fully documented, and it turns three tasks that require your attention into one big task that doesn't -- a big improvement. The one thing I wasn't able to figure out was how to make progress bars for the curl command... but I'm sure someone out there knows.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[9,438 views]  

An AppleScript to encode, tag, and upload podcasts | 4 comments | Create New Account
Click here to return to the 'An AppleScript to encode, tag, and upload podcasts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Audio Hijack does this automatically
Authored by: jpgetty on Jun 28, '06 09:08:02AM

AH (not the pro version) has an option to encode to iTunes AAC automatically after it records something.



[ Reply to This | # ]
Audio Hijack does this automatically
Authored by: tinker on Jun 30, '06 04:02:21PM

True, it encodes to AAC or MP3 automatically. I see two problems with doing so for the master of a podcast, though. One, any editing has to decode and re-encode, so you can get artifacts. Two, it takes up a lot of processor time, so if you're doing something relatively processor-intensive, like chatting with three other guys on Skype, you can get clipping (believe me!)

That's why I use AIFF as the format of choice for my master recording and only convert to .mp3 in the last stage before uploading.

In any case, even if you feel differently and already have your recording in final form via some other method, you can just outline and cut the part that converts to mp3. The script will still add ID3 tags and FTP the file up, which is pretty handy.



[ Reply to This | # ]
An AppleScript to encode, tag, and upload podcasts
Authored by: burro on Jun 28, '06 12:46:21PM

lame-20060628 will not compile on my machine.



[ Reply to This | # ]
An AppleScript to encode, tag, and upload podcasts
Authored by: tinker on Jun 30, '06 04:03:37PM

Here, I wish I could help. Would older versions work, perhaps?



[ Reply to This | # ]