Jump to content
pablojimeno

Run a shell command installed with homebrew

Recommended Posts

Hello, I'm trying to create a simple workflow that saves to disk the image that is in the clipboard. I found pngpaste a library to do just that.

 

Now I created the workflow with a keyword trigger named pasteimage and an action "Run Script"

 

query=$1

pngpaste $query

 

I get this error:

 

Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/546DD210-2D7D-4CED-AA58-DAB4B0F6EE89:3: command not found: pngpaste

How can I run this command from Run Script?

 

Thank you

Share this post


Link to post

Applications do not use your shell's environment, and /usr/local/bin is not on $PATH. Use the full path to the program.

query=$1

/usr/local/bin/pngpaste $query

Share this post


Link to post

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
×