This is an old thread, but still very useful! I have made some simple tweaks to MediaManiac's code so that it will properly preserve the original file's naming and .flac extension, as well as update the wav and mp3 file names. Also, if you only want to create wav files, search the code for 3 section...