Switch and Tesseract

Post Reply
alahode
Newbie
Posts: 3
Joined: Thu Aug 12, 2021 3:42 pm
Location: Germany

Switch and Tesseract

Post 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 3614 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é
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: Switch and Tesseract

Post 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
alahode
Newbie
Posts: 3
Joined: Thu Aug 12, 2021 3:42 pm
Location: Germany

Re: Switch and Tesseract

Post by alahode »

Hi Padawan.

Great idea! That works.
Thanks for your help.

Best regards.
André
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Switch and Tesseract

Post 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 3499 times
alahode
Newbie
Posts: 3
Joined: Thu Aug 12, 2021 3:42 pm
Location: Germany

Re: Switch and Tesseract

Post by alahode »

Hi magnussandstrom.

That works just as well. Thanks for the tip!

Best regards.
André
Post Reply