MyProductiveMac

View Original

Fallback Searches with Alfred

How many times do you find yourself searching for web content a day when you’re on your Mac? Ten times? Twenty? More than fifty? OK, it’s a rhetorical question, we know it’s a lot however it’s only recently that I’ve stopped defaulting to Google for every search I make. If I need to check the definition of a word, I go to Google first. When I watch something on TV and recognise an actor, yet can’t remember for the life of me where they are from, straight back to Google again. Who are my favourite football team playing this weekend? Once more, straight to Google. (OK, sometimes it’s Alexa, but she seems to have the hump with me a lot of the time and refuses to understand my wonderful British accent). 

Instead of defaulting to Google, I now make use of the excellent Fallback Searches feature within Alfred.

 

Fallback searches are essentially a list of search options you see when the keyword you are searching for doesn’t match any kind of result on your Mac. If you haven’t configured new ones, you’ll know the ones I mean. You start typing a file name, it’s not on your Mac, yet you see the options to look for the content on Google, Wikipedia and Amazon!

Well these fallback search options are great because you can add your own in there as well to suit the sites or applications you frequently query. Here’s how:

1) in Alfred, Open up the Preferences and go to Features -> Default Results

2) Click the Setup Fallback Results button. 

3) Clicking the + button will give you the option of adding various Web Searches, Custom Searches or Workflow Triggers to the list of Fallback Searches that appear. I’ve written about how to create Custom Searches before (check it here) so It won’t surprise you to see a couple of custom search locations there - my site and the DEVONthink forum are queried many times a day. As I am a PowerPack user I also have a Workflow Trigger defined which allows me to search the local Dictionary app on my Mac for the definition of a word. I’ll finish by showing you quickly how I did that.

4) Open Workflows and create a new Blank workflow by clicking the + button in the bottom left hand corner. 

5) Context click on the black canvas and select Triggers -> Fallback Search

6) Enter the title you wish to be displayed within Alfred.

7) Now, click on the canvas again and this time choose Actions -> Open URL

8) In the URL window, type dict://query - this prompts Alfred to open the Dictionary application with your query.

9) Save this workflow and add it to the Fallback results above as a Workflow Trigger. 

It may seem like a small change to make, and it certainly doesn’t take long to implement, however I’ve really noticed a difference with how I search for things now. It’s also had an impact on how I search for things on iOS now, as I am developing some default searches with Launch Centre Pro and I’ll follow this post up with those results soon!