Marker export batch processing

Hello

I have to work on hundred of files, by importing already exported .txt markers files, modifying them, and exporting again the new version as .txt files.

On Mac, we have to to indicate and add .txt to the name, before exporting.
I would like to open .txt file associated to the audio file i am opening, and save automatically the modified marker file before closing (without changing the audio file).

Is there any way by using scripts / batch processing to automate these actions ? I did not find the commands in the script area.

Thanks for your ideas / help.

Sebastien

See: https://forum.audacityteam.org/t/no-txt-extension-when-exporting-markers-default-folder/40753/1

Anything here help? http://computers.tutsplus.com/tutorials/3-easy-ways-to-batch-rename-files-on-the-mac--mac-46999