I use a combination of Apple Shortcuts and Keyboard Maestro to do this:
For more information, see the wiki Searching the Forum for Answers section.