Apple
How I Use Alfred 6 Workflows for Mail and Weather
I built two Alfred 6 workflows for things I check all the time. One shows the five newest messages in an Apple Mail inbox. The other opens an animated forecast. Here’s how they work and where to start with your own.
I can type inbox on my Mac, choose an Apple Mail account, and see its five newest messages in Alfred. I can type weather and get the current temperature, the next six hours, and a forecast for the week. If it’s snowing, it snows in the forecast window.
I built both workflows because I wanted to get to one piece of information quickly. Putting them side by side made me appreciate how much freedom Alfred gives you over what happens after you press Return. My earlier Alfred 6 article covers the bigger update, including Query History, Contacts, and the Clipboard Viewer. Read Alfred 6 Looks Familiar but These Four Changes Matter.
A workflow starts with what you type

In Alfred’s workflow editor, you connect inputs and actions. A keyword can start the workflow, and the next object decides what happens. Opening a URL might take one connection. A more involved workflow can fetch data, show you several choices, and act on whatever you select. Workflows are part of Alfred’s Powerpack. Alfred’s workflow guide.
Workflows have been part of Alfred for years. Alfred 6 adds Alfred UI, a toolkit for designing your own windows and filling them with controls such as buttons, text fields, and pickers. A Script Filter is another option. It takes the results of a script and puts them directly into Alfred’s familiar search list. My two workflows gave me a reason to use each approach. Alfred UI toolkit, Script Filter documentation.

Five messages are enough for an inbox check
Bryan’s Inbox starts with the accounts I’ve enabled in Apple Mail. I type inbox, use the arrow keys to choose an account, and press Return. Alfred shows up to five messages with the sender and date. Unread mail gets a teal envelope and a dot. If something needs my attention, I press Return again to open that message in Apple Mail.
I tried a combined view early on. Asking Mail to gather messages from several accounts could hang before Alfred had a chance to show anything. With the picker, the workflow reads messages only from the account I choose. I also switched to asking Mail for all five message headers in a batch when it can return them that way. Alfred’s search field shows the mailbox name as I switch accounts, so it’s easy to tell where I landed.
This is where Alfred’s search list feels right. I can move down a few rows, recognize a sender, and open one message. The workflow gets its information from Apple Mail on my Mac, and macOS may ask for permission the first time it runs. Alfred shows subjects, senders, dates, and read status. I read the full message in Mail.

Weather benefits from a full window

With weather, I want a few answers together. What does it feel like outside now? Is it going to rain in the next hour? What does the weekend look like? I can read all three in Bryan’s Weather without selecting separate results. The dashboard has an hourly strip, daily highs and lows, and controls for city search and temperature units. A keyword can take a city too, so weather London, United Kingdom gets me started on a different forecast.
Alfred UI is what gives the forecast room for those details. The script gets weather data from Open-Meteo, and the dashboard updates when the data arrives. The animation sits behind the current conditions. Rain, snow, fog, and clear nights each change the look of that card. The forecast figures stay in the same places, so I can find the next hour or tomorrow’s high at a glance.
The weather article includes the downloadable workflow and shows how to build it. It starts with a keyword and one temperature reading, then adds a city picker, forecast cards, and the animated backdrop. Read How I Built an Animated Weather Dashboard in Alfred 6.
Start with something you do a lot
If you’re new to workflows, try a single shortcut first. In Alfred Preferences → Workflows, create a blank workflow, add a Keyword input, add an Open URL action, and connect them. Give the keyword a short name and point it at a page you visit often. You can also install a workflow from Alfred Gallery and open it in the editor to see how its pieces connect. Creating workflows, Alfred Gallery.
Both of my workflows became easier to use once I knew exactly what I wanted on the first screen. For email, I want to choose an account and see enough messages to decide whether to open Mail. For weather, I want the rest of the afternoon and the whole week in view at the same time. A short list and a dashboard can both start with one word in Alfred. The difference is what I need to do when the results appear.