Win10/3.1.3
Two meanings are associated with this term:
(1) The sense in Audacity 3.1.3 by using Tools, Apply macro, Palette, Files
(2) The sense of running a Windows Batch file or similar script to make use of iteration, recursion, and conditional statements.
In the first case, an “Export” command is recommended as the last step in the macro to be applied. Your output folders may be critical in these cases.
In the second case, an “Exit” command or macro is recommended, otherwise we will leave as many Audacity projects lying around as we have files to process.
Suppose we write an Audacity macro to process a recording of the spoken voice; reading pages of a chapter, or chapters of a book.
The Audacity macro will look something like this:-
This Audacity macro can be run by Tools, Apply macro, Files, at which time we are prompted for a folder into which we have placed all the audio files to be processed. This presupposes that we have managed to collect, and are prepared to disperse to their original folders, a set of files from the hard drive.
An alternative version of the macro to be driven from an operating system batch file would look like this:-
Note the extra command to Import a standard-named file, and the extra command to exit Audacity.
These two Audacity macros are simplified for examples; the full macros may be a dozen lines - or more.
The Windows/DOS batch files to process all the files in a folder will look something like this:-
Of course, a parent batch file could invoke the “Assemble2_0” batch file from a variety of folders on the hard drive, removing the need to collect and disperse audio files from various locations.
To the best of my knowledge there is no “AutoStart/AutoOpen/AutoExec” facility in Audacity, so the user needs to issue a shortcut keystroke to invoke the Audacity macro for each file.
It seems to me that if a user wants to make use of both Audacity batch processing and the Operating System scripting facility (to make use of iteration, recursion, and conditional statements), then the user will need two versions of each macro.
Cheers
Chris