Script to add / remove underscores?

Oh wow. Thank you so much for this! I’m excited to give it a try…

I’ve used Keyboard Maestro periodically, and would certainly be happy to use that with your script. How would one do so?

Also, do you think there’s a way to use Keyboard Maestro to select & copy discontiguous text, as I outlined in this post: Copy multiple selected items?

Thanks again for your help!