Search code examples
applescriptocrautomatorabbyy

Run Automator Workflow in background


Trying to make Automator workflow that uses "Convert to TXT Document" for pdf to txt convertion. But while running, Abbyy FineReader window becomes active. Is it possible to run in in silent mode or with minimized window?


Solution

  • I decided not to use FineReader applet. Instead I migrate to stack: tesseract + ImageMagick + gs. If anybody is interested, I attach my sollution below.

    Automator shell script

    export PATH=/usr/local/bin:$PATH
    
    /usr/local/bin/convert -density 300 "$@" -depth 8 -strip -background white -alpha off image.tiff
    /usr/local/bin/tesseract -l rus image.tiff ~/Desktop/OCR
    rm image.tiff
    

    And the Automator workflow