jcsalterego / pngpaste

Paste PNG into files, much like pbpaste does for text.
Other
477 stars 32 forks source link

Error: "261:313: execution error: sh: /us/local bin/pngpaste: No such file or directory (127)" #23

Closed tristanotto closed 1 year ago

tristanotto commented 1 year ago

I’ve tried to set this up with Automator but I’m always getting this error when trying to paste the image.

image
jcsalterego commented 1 year ago

Can you run which pngpaste? And how are you setting up Automator?

tristanotto commented 1 year ago

Returns: /opt/homebrew/bin/pngpaste

image
jcsalterego commented 1 year ago

Oh! Try replacing /usr/local/bin/pngpaste with /opt/homebrew/bin/pngpaste in the Automator Run Shell Script step there.

tristanotto commented 1 year ago

Oh! Try replacing /usr/local/bin/pngpaste with /opt/homebrew/bin/pngpaste in the Automator Run Shell Script step there.

fixed it! awesome, thank you!