Also, when all projects within a loop are more or less the same, you can create one manually as a template, store it under some file name and load it within the script (projectCreateFromFile()). Then just change the settings that need to be set individually (i.e. input / output files), start it and call syncProjects() (or waitForRunningProjects()).

A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]