Searching for GIFs with Alfred, Revisited

I’m turning 36 early next year, so in attempt to stay relevant with my younger friends, I communicate a lot with GIFs.

I am a big fan of the GIFWrapped app by my buddy Jelly for building my own private collection, but sometimes I want to search for something quickly from my Mac.

I use Alfred as my launcher of choice, so I’ve built two custom workflows to make this Very Important Work easier. I have shared the GIPHY workflow before, but now I have one for Tenor as well.

And of course, there’s MegaGIF, which is my workflow that searches both at once.

If you’re not an Alfred user, you can use the bash scripts at the core of these workflows just about anywhere:

search=$(echo "{query}" | sed 's/ /-/g')
open "http://tenor.com/search/${search}-gifs"

search=$(echo "{query}" | sed 's/ /-/g')
open "http://giphy.com/search/${search}"