I try to implement these two very simple commands in an Automator service to be run by a keyboard short (takes a screenshot and OCRs it):
screencapture -i /tmp/tesseract.png
tesseract /tmp/tesseract.png stdout|tr -d \\f|pbcopy
This works great when I execute these commands in the Terminal, but not when I make it an Automator service (sorry this is in German). I don't understand: Why does it work in the one case and not in the other? Does it have anything to do with tesseract?
/path/to/tesseract /tmp/tesseract.png stdout|tr -d \\f|pbcopy
echo $PATH
. Post the output.