Jump to content
Blazej

Alfred 4 select path for python/ruby/anything

Recommended Posts

If you want to use a specific interpreter, either change the shebang in your script or use /bin/bash as the Language and specify the full path to the interpreter: /usr/local/bin/python scriptname.py "$1"

Share this post


Link to post
24 minutes ago, Blazej said:

Ok, so I can do the same with Alfred 3, right?

 

Yes. When you set Language to /bin/bash, you're basically turning Alfred into a shell. You can run anything you could from your shell (differing environment notwithstanding).

 

Both Alfred 3 & 4 also support setting Language to "External Script", which will run anything that's executable.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...