In recent weeks, we've published a few posts on some of our favourite Alfred workflows. Some are very simple and others are more complex, but they're all created using Alfred's building blocks, the workflow objects.
This tutorial will help you understand what a workflow is, how to import an existing Alfred workflow and set it up to get started with it.
What are workflows?
Alfred has an extensive set of features, both in the free core version - searching your Mac and the web, calculations, dictionary - and in the Powerpack - clipboard, theming, iTunes Mini Player and more.
Yet, we know that you like to customise things even more and control your Mac even more deeply. This is where workflows come in; This Powerpack feature allows you to speed up repetitive tasks and save time by performing many actions at once, even if you're the only person in the world who needs to perform that task. Who doesn't want to get work done more efficiently?
You can import workflows created by fellow Alfred users and you can create your own. Here, we'll look at importing existing workflows and setting them up. In the next tutorial, we'll look at creating your own from scratch and sharing them with friends.
You'll find workflows in various places on the web:
- On this blog, where we often feature some of our favourite workflows
- On Packal, a fantastic repository for workflows and themes, created by Alfred user Shawn Patrick Rice
- On the Alfred community forum, where many users share their workflows & discuss their ideas
- Developers of other Mac apps have created workflows, so you'll find many more by searching for workflows and the name of your favourite Mac apps
You can also download the very simple file filtering workflow I'm using as example in this tutorial.
Importing a Workflow
Once you've found a workflow you like, you can simply install workflows by double-clicking the workflow file. The workflow files end with .alfredworkflow.
You can add the workflow to a category, then click "Import" to finish importing. You'll now see the workflow listed in the left sidebar of your Workflows preferences pane.
Occasionally, you might come across Alfred extensions (ending in .alfredextension); These are the precursors to workflows and date back from Alfred version 1. You won't be able to import these directly into version 2, but you'll find that the most popular ones have been re-published as v2 workflows by their creators.
Setting Up Your Workflow
Once imported, most features of your workflow will work instantly. A quick look at the workflow will show you what keywords you can use.
In this example, the keywords are "new" and "old". Typing the keywords into Alfred will show you what action you can perform with them. In this example, the keyword "new" allows you to filter files to only show documents you've modified in the last 3 days.
Where workflows contain hotkeys, the hotkeys are stripped out when you import the workflow, to ensure that these don't clash with your existing hotkeys. You can set these easily by double-clicking the hotkey object to show the drop-down where you can set your hotkey.
Hit save, and that's your hotkey set!
The world's your oyster, son! You can add workflow objects and connect them together to add more ways to search your files. You can change keywords and hotkeys to suit your needs. Or you can modify the file filter by double-clicking it to change what file types are searched or the search scope to search only specific folders on your Mac.