AppleScript for generating podcast-ready mp3s

Here’s an AppleScript that passes variables (episode title and description) to a bash script, opens it in a terminal window and runs it, letting you watch how it generates a podcast-ready mp3 file. I’ve put it into an Automator workflow that accepts audio files.


Here it is on GitHub.

It should be pretty self-explanatory: Just fill in the path to the script. Which script? I’m glad you asked! It’s the script that does the “work”, if you will, of generating an mp3 using LAME. I used a fork of Marco’s script because it was easy to feed with variables and a bit more elegant. To use it, just fill in your podcast’s name, the path to the artwork, and you’re good to go!

Getting the POSIX file name of the input file via AppleScript was kind of a hassle, I hope whoever runs into the same problem finds this.

With the method of using AppleScript to pass variables to a bash script, I riffed off of Jason Snell’s solution.