Thank you for the question! I didn’t even think of this use case. I’ll setup regex (and wildcards) but not scripting.
Check back in a week!
Check back in a week!
As a kind of apology, I made a drop-in hammerspoon config that should accomplish exactly what you wanted: https://gist.github.com/philocalyst/ad9f6d7cc08a9cdefa795e1b...
And if you've never used it before: https://www.hammerspoon.org/go/