Jump to content

How to run bash app scripts inside alfred?


mbigras

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

Link to comment

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.

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