How Do I Automate Audacity?

I’ve started a new topic here: https://forum.audacityteam.org/t/label-data-to-text-file/24914/1

I’ll be referring to line numbers in the code, so ensure that you have line numbers showing in Notepad++
I’ll post the next “instalment” in an hour or so (got a few things that I need to do).

It should be all pretty straightforward so far.
Have a read through this page: http://wiki.audacityteam.org/wiki/Nyquist_Plug-ins_Reference

See you over at the new topic in a bit.