2011-08-18 6 views
1

ScanSnap S1500M을 사용하여 모든 종이 문서를/PDF- 스캔 /에 스캔합니다. - Adobe Acrobat X Professional을 사용하고 싶습니다. 텍스트를 OCR로 보냅니다.AppleScript 또는 Automator : Acrobat X Pro를 실행하여 여러 개의 PDF 파일 (OCR)을 일괄 처리합니다.

나는이 (매일) 프로세스를 자동화하고 싶습니다 : 를 파일 이름에/"-OCR"를 추가/PDF-스캔에서

  • 개방 애크로뱃 X 프로
  • 배치 OCR 과정 PDF 파일을
  • OCR 후,

내가 자동화를 사용해야// PDF-스캔에서 원래의 PDF 파일을 삭제/PDF-OCR/

  • 로 파일을 이동? 이 작업을 수행 할 수있는 스크립트가 있습니까? iCal의 반복 행사에 묶여 야합니까?

    감사합니다.

  • +0

    ... 어도비 응용 프로그램이 : 당신이 그 일을 한 후에는이 스크립트를 사용할 수 있습니다 AppleScript 및 심지어 자바 스크립트를 통해 스크립트 가능합니다 ... – Yahia

    +0

    @ Yahia : 그건 완전히 사실이 아닙니다. Acrobat은 AppleScript로 간신히 스크립트 가능하며 Adobe는 모든 API 개발을 Javascript로 푸시했습니다. 또한 Automator는 필요하지 않습니다. Applescript는 응용 프로그램 내에서 제대로 구현되면 모든 작업을 능숙하게 처리 할 수 ​​있습니다. Javascript의 기능에 대해서는 말할 수 없습니다. –

    답변

    1

    ocr 문서를 쉽게 작성할 수있는 PDFPen을 다운로드 할 수 있습니다.

    set the PDF_folder to "where:Ever:Your:PDF:folder:is:" as alias 
    set the OCR_folder to "/where/ever/you/want/the/new/folder/to/be" as POSIX file 
    
    tell application "Finder" 
        repeat with this_PDF in (every item of the PDF_folder) 
         my ocr(this_PDF) 
        end repeat 
    end tell 
    
    on ocr(this_PDF) 
        tell application "PDFpen" 
         open this_PDF as alias 
         tell document 1 
          ocr --simple 
          repeat while performing ocr 
           delay 1 
          end repeat 
          delay 1 
         end tell 
         set this_PDF to (save document 1 in this_PDF) 
         close document 1 
        end tell 
        tell application "Finder" 
         if not exists OCR_folder then set the OCR_folder to (make new folder at (the OCR_folder as alias with properties {name:"ocr"}) 
         move this_PDF to the OCR_folder with replacing 
        end tell 
    end ocr 
    
    방금 ​​alle 그 필요한 조치를 처리하는 AppleScript로에 ... 도착하는 모든 새 파일에 대한 귀하의 AppleScript로 전화를 자동화 말할 수