Batch export audio from multiple projects

I batch converted the metadata in the session XML file on multiple Ardour projects and now would like to batch export the audio so that metadata is in the flac files. I’d like to run a bash shell script to do it, but it seems like a Lua script could do it too. I just don’t know.

You could also perform the metadata update in two steps, just export the audio with no metadata, then use a script to extract the data and apply to the audio files using metaflac.