Jump to content

How to run Python3 from Alfred workflows


Recommended Posts

Welcome @thebeardedberry,

 

By necessity, Alfred’s options only include what macOS ships. To run with a different executable, you have two options:

  • Set the language to External Script and point to the script with the correct shebang—must have the full path to the executable because Alfred’s environment isn’t the same as in your Terminal.
  • Set the language to /bin/bash and call Python version (again, full path) and then your script and arguments. Something like /usr/local/bin/python3.7 your-script.py argument.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...