Using the power of OSX Automator!
Automator offers many handy actions in OSX. After creating an “automation” in Automator, you can save it as a “Quick Action” and assign a keyboard shortcut to it in System Preferences.
Documentation: https://support.apple.com/en-au/guide/automator/welcome/mac
If you like, you can click “Run” in the top-right corner to test the action.
Open System Preferences
> Keyboard
> Shortcuts
> Services
> General
and assign a keyboard shortcut to the Quick Action.
Done! Enjoy your new shortcut 🤓🙈