I’m already using punch and roll, but the macro looks like a good solution! I tried adding “Stop” as the first command but unfortunately it seems like you can’t run a macro while recording. Oh well, two keystrokes is not too bad.
Btw I found a thread where someone else was trying to do a similar “stop the recording and then do something” macro: https://forum.audacityteam.org/t/stop-recording-with-a-macro/51462/1
It might be a nice idea to allow macros to run during recording if their first command is “Stop”. Or maybe just allow all macros to run, but always stop the recording before running them.