I want to "augment" Spotlight to do things like:

  • If an integer (^\d+$), open a site, example.com/$0.
  • If a UUID (^\d{8}-\d{4}-\d{4}-\d{4}-\d{12}$), open another site.
  • If a string beginning with "user:" (^user:(.*)), open another site.

And so on.

What utilities or scripts can I put together to achieve this. (Can Hammerspoon be integrated?) I'm willing to use any tool (even paid, as long as it's widely supported), and also willing to do some scripting or programming.

  • 1
    One hack would be to assign an AppleScript to a shortcut key that you can press from within Spotlight and have the script analyse what you’ve input into the search box and perform those tasks for you. Another, better way is to Dow load Alfred and pay for their power pack, then you can achieve a lot from, what is essentially Spotlight on steroids. Launchbar is another alternative that I haven’t used. Plus there are others that are open source on GitHub (these types of softwares are called ”Application Launchers”). – CJK Aug 4 '18 at 11:32

You must log in to answer this question.

Browse other questions tagged .