Automation Tasks
New in Alfred 5
Automation Tasks are an exciting new feature in Alfred which allows you to build even more complex Workflows without a line of code.
There are automation tasks to perform a wide variety of tasks; From changing your wallpaper or opening a new Safari tab to moving windows and converting dates and times.
- How can I use Automation Tasks?
- Setting up an Automation Task
- Updating Automation Tasks
- Understanding Automation Task colours
How can I use Automation Tasks?
Open Alfred's Preferences to the Workflows preferences. In the Palette on the right, expand the Automations section and add an Automation Task object to your workflow.
The first time you use an Automation Task, you'll need to get them via the "Options" button in the bottom left of the Automation Task preferences.
Setting up an Automation Task
Some objects are useful on their own. Set Dark Mode
, for example:
But Automation Tasks shine when they're chained. A Get Most Recently Added Path
of the Downloads folder connected to a Send to Trash
deletes your most recent download:
We can do better. How about getting rid of all those downloaded DMGs you've accumulated?
List Folder Contents
of the Downloads folder.Get Matching Arguments
set to match files ending in.dmg
.- Trash them.
Automation Tasks interact with other Alfred objects too. Let's play a random movie:
List Folder Contents
of the Movies folder.Get Random Argument
to pick one entry at chance.Open File
to play it.
You're not limited to interacting with files; Automation Tasks can change your wallpaper, manipulate text and URLs, edit images, resize windows, interact with apps, and more! The list keeps growing. Grab the demo Workflow to play with the examples.
Updating Automation Tasks
Updated in Alfred 5.1
Check for Automation Task updates in Alfred Preferences > Workflows > Alfred Gallery (bottom left on the list) > Automation Task Options... There you can set them to auto-update without further intervention.
Understanding Automation Task colours
The Automation Task object in the Workflow Editor can be one of four colours:
- Grey: No task set
- Turquoise green: Task set and ready to use
- Orange: Task needs to be configured; Open the object configuration and fill in the details needed
- Red: Task missing; Follow the update procedure
Automation tasks are always evolving
New Automation Tasks will be added over time, and some may change. If a workflow containing Automation Tasks doesn't appear to work, check they are up to date.