Elgato stream deck and Alfred

In case it helps someone else, this was a little trickier to set up than I thought it would be.

  1. In Alfred, add an External Trigger (as mentioned by @vco1). Call it whatever you want. Ignore the second text box for now.
  2. Still in Alfred, double-click the workflow in the left sidebar and give it a bundle identifier. Something like com.alfredapp.workflows.yourworkflowname.
  3. Reopen the External Trigger you added in (1), and copy the sample code from the box.
  4. Install the OSA Script plugin from the Stream Deck plugin gallery.
  5. Add a Run OSA Script action to your Stream Deck.
  6. Paste the code block you copied in (3) into the run action.
  7. Make sure Stream Deck has permissions in macOS Security & Privacy → Privacy tab → Full Disk Access.

That should be it!

Edit: I should add that I prefer this script-based approach over simulating keystrokes or keypresses because it eliminates the chance that a keypress conflict will occur. The script-based approach guarantees that only this workflow will be executed when you run the Stream Deck action.

2 Likes