How to create an Alfred Workflow using Python

  • Alfred app with the Powerpack
  • Basic Python knowledge
  • Apple Music (you can also modify this tutorial to work with Spotify)

What we will be making

Creating the Workflow

Step 1: Blank Workflow

Step 2: Connecting to Python

Step 3: Writing the Python script (Getting iTunes Data)

  • title: the title displayed on the Alfred dropdown
  • subtitle: the subtitle displayed on the Alfred dropdown
  • icon: the icon displayed on the Alfred dropdown (put your desired icon in the same folder as your file)
  • autocomplete: what Alfred will use to filter your results
  • arg: the string that is passed to a connected action in your Workflow

Step 4: Opening the Song in Apple Music

Step 5: Debugging

Downloads / Conclusion

Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Connect to a Remote MySQL Database with Python


Business undertaking — The Organization Engine during the current Decade

Day 10: From Prototype To Work Of Art

SwiftUI vs UIKit: Benefits and Drawbacks

Software Development Life

AWS Transit Gateway in Action

DialogFlow: The modern way of onboarding the users and increasing the conversions on the mobile app

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Maharsh Patel

Maharsh Patel

Software Engineer

More from Medium

Automate Your APIs With api-flow

Analysis of DB Client tools on Mac

Delete all messages from a Slack channel

A simple bot to send emails in Google Cloud