Jump to content
mbigras

How to run bash app scripts inside alfred?

Recommended Posts

Is it possible to easily run custom bash scripts with Alfred, but run them from my local machine, instead of typing them into Alfred?

 

For example, if I have the following script:
➜ xdoc git:(master) ✗ pwd
/Users/max/Dropbox/work/src/github.com/mbigras/xdoc
➜ xdoc git:(master) ✗ ls
README.md xcats xdoc xdoc.mm
➜ xdoc git:(master) ✗ readlink xcats
/Users/max/Dropbox/work/src/github.com/mbigras/xdoc/xcats
➜ xdoc git:(master) ✗ cat xcats
#!/usr/bin/env bash

echo inside xcats with args: $@

 

with the following workflow, I get the following error, please see attached images.

 

So I'm wondering how can I pipe alfred output into my bash scripts without manually writing them inside the Alfred IDE?

 

Thanks :)

 

2016-09-15 at 1.59.44 PM.png

2016-09-15 at 2.03.18 PM.png

Share this post


Link to post

I'm not entirely sure what it is you're trying to do.

 

Do you just want to run the /Users/max/Dropbox/work/src/github.com/mbigras/xdoc/xcats script from Alfred?

 

If so, you can do that with Run Script action. Set Language to External Script and paste the path to your script in the Script File box.

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...