I would like to right click on a folder and have DOpus pass all MP3s in the folder to MP3Gain for normalization. I'd love a one click option--open the files, normailze, and then save them. At this point I'd like to use the standard 'apply Track Gain' option, but it would be nice to know how to add MP3Gain parameters to change the options.
These posts have reference for the MP3Gain options to pass to Command Line:
I'm not familiar with MP3Gain's command line details but if you can work out the command line you want to use (either per file or per folder) then we can tell you how to make Opus run it.
A good thing to do is try the command line from a Command Prompt, without Opus being involved at all, to make sure you have what you want. Trying to make an Opus button at the same time can complicate things, as you aren't always sure if the command line itself is wrong or the button that is generating it.
The file one works (though I got a dialog that said "Windows cannot find pause" or something like that. I removed "pause" from the script and it was fine. My understanding is that just lets you read the output of the commands and isn't needed for the script.
The folder one is not working. I get:
Can't open C:\Users\Brad\Documents\FaLaLaLaLa\FaLaLaLaLa Music_2018\Cap\Pelham, Jimmy - Santa, Watch Your Klaws*.mp3 for reading
So it seems like the *.mp3 isn't getting the files.
It should work with and without the slash and the quotes. Where do see the message? Did you set button function to MS-DOS (it's needed not just for the pause to work)? If that is all ok, test with simpler filenames and shorter paths. Which version do you use? Mine is 1.2.5.
I had written out a step-by-step response to your (helpful) questions, but before completing my response I did a bunch of testing/troubleshooting and solved the issue.
The problem seemed to be with spaces in the folder names/path. So in your code I changed {filepath$} to {filepathshort$} and it worked!
I found also that this didn't seem to work with quotes around the filepath part of of the script.
There's one more modification I'd like to make. Right now it doesn't work on MP3s in any subfolders. I'd like it to do that if possible. If not, no big deal.
Thanks, once again, for your patience with a relative newbie. It is GREATLY appreciated!