It is always a pain clicking on a link to a journal article only to hit a paywall. It’s doubly painful when I know I have institutional access via my library’s proxy server, but have to jump through hoops to get it: go to the library website, log in, copy and paste the article name or PMID into its PubMed search box, and finally download the PDF. Arduous, and—turns out—unnecessary.

Enter Alfred 2 workflows. Here’s a nice article I found on Twitter today. The NEJM link in the top right corner leads to an abstract, but I need a special archive subscription for the full PDF. No matter—I can just highlight the PMID and hit my special Alfred 2 keyboard combo:

Since I’m not already logged into the Welch library proxy, I hit a login wall. It’s nothing 1Password can’t solve, but you can also just type in your username and password yourself, like an animal.

And Bam! The ugly but magic button is where it should be. Your institution might have a prettier one.

To make it clear—this simple workflow will do a PubMed search of any selected text anywhere in OS X, all through your institutional proxy server. Finding an interesting reference while reading an article, highlighting its title, and hitting ^⎇⌘P to get to the PDF always feels like magic.

You can download the workflow here.