Page 1 of 1

Switch and Tesseract

Posted: Thu Aug 12, 2021 4:59 pm
by alahode
Hello everyone.

I would like to use Tessesract via Switch. Unfortunately I get the following error message:
Cannot complete sendToSingle() for '/Users/switch/Library/Application Support/Enfocus/Switch Server/temp/251/ScriptElement/88/319/ExecuteComandResult/test.txt'

Cannot send job: path '/Users/switch/Library/Application Support/Enfocus/Switch Server/temp/251/ScriptElement/88/319/ExecuteComandResult/test.txt' does not exist
These are the settings of Execute Command:
properties.jpg
properties.jpg (82.59 KiB) Viewed 3676 times
I have also found the cause of the problem. Tesseract automatically sets the extension txt. I have not found a way to change this.
So I have a double txt-extension for the output file, which cannot be found by Switch:
/Users/switch/Library/Application Support/Enfocus/Switch Server/temp/251/ScriptElement/88/319/ExecuteComandResult/test.txt.txt
Is there any way to specify the argument "%2" without the file extension? Or another idea?

Best regards.
André

Re: Switch and Tesseract

Posted: Thu Aug 12, 2021 9:59 pm
by Padawan
Have you tried the Run Command app?
https://www.enfocus.com/en/appstore/product/run-command

The command will be something like this:
/path/to/tesseract "%%InputFilePath%%" "[Job.FileNameProper].txt" -L deu

Re: Switch and Tesseract

Posted: Tue Aug 17, 2021 3:08 pm
by alahode
Hi Padawan.

Great idea! That works.
Thanks for your help.

Best regards.
André

Re: Switch and Tesseract

Posted: Thu Aug 19, 2021 7:50 pm
by magnussandstrom
Hi, you can use Execute Command as well, I posted a screen shot of the setup in the last messege in this thread: viewtopic.php?f=12&t=3812&p=11690&hilit ... act#p11690
tesseract_execute_command.png
tesseract_execute_command.png (246.88 KiB) Viewed 3561 times

Re: Switch and Tesseract

Posted: Fri Aug 20, 2021 9:14 am
by alahode
Hi magnussandstrom.

That works just as well. Thanks for the tip!

Best regards.
André