An Alfred 3 compatible Asana Workflow

Having recently switched from the 2.x version of Alfred to the latest 3.0 version, I naturally wanted to port over all of my workflows. Some of my Alfred workflows include:

There’s a really great roundup of Alfred 3 compatible ones here.

Another that I made good use of was the Asana workflow. Asana is the best productivity app out there, so when I first discovered back in the day that there was an Alfred integration, I was psyched.

Fast-forward to a couple weeks ago, when it came time to add it to the new Alfred. I downloaded the .alfredworkflow file only to be surprised to find that it wasn’t compatible. Wha?

alfred-3-asana-error.png

Debugging within Alfred itself revealed some wrong/missing directories:

1
2
[2016-12-31 01:30:49][ERROR: action.script] mkdir: /Users/andrewboni/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory
mkdir: /Users/andrewboni/Library/Application Support/Alfred 2/Workflow Data: No such file or directory

Some forum digging confirmed what I already saw: it’s not compatible out of the box. That’s annoying, but not an issue.

What I ended up doing was symlinking the old Alfred 2 directory to the new one, so that the Asana workflow was happy. This also let me avoid having to manually tweak the .alfredworkflow script itself. Here’s how:

1
ln -sfv /Users/andrewboni/Library/Application\ Support/Alfred\ 3 /Users/andrewboni/Library/Application\ Support/Alfred\ 2

and

1
ln -sfv /Users/andrewboni/Library/Caches/com.runningwithcrayons.Alfred-3 /Users/andrewboni/Library/Caches/com.runningwithcrayons.Alfred-2

After that, everything worked like a charm!
alfred-3-asana-success.png

Now to just tackle that todo list…