2015-01-09 4 views
2

ABBYY FineReader for OS X의 최신 버전은 이제 AppleScript를 지원합니다. 주어진 PDF 문서의 OCR을 수행하는 간단한 스크립트를 작성하여 검색 가능한 PDF 문서로 저장합니다. 불행하게도, 나는 AppleScript의 초보자이며 작동시키지 못합니다. ABBYY FineReader 스크립팅에 대한 추가 설명서 또는 샘플을 찾을 수 없습니다.AppleScript로 ABBYY FineReader 스크립팅

tell application "FineReader OCR Pro" 
    export to pdf "<path to pdf>" 
end tell 

그러나, 나는 출력이 "값 누락"얻을 :

export to pdf v : Converts the current document to a PDF file. If FineReader is running in a Sandbox, the file will be saved to a temporary directory. 
export to pdf file : NO_DESCRIPTION 
    [ocr languages enum language list type] : List of recognition languages that includes  language identifiers and full language names. 
    [saving type save settings enum] : Specifies file creation settings for saving results. 
    [export mode pdf layout] : Specifies export mode. 
    [keep page numbers headers and footers boolean] : Keeps headers, footers and page numbers. 
    [page size page size enum] : Specifies paper size. 
    [keep pictures boolean] : Keeps pictures in recognized document. 
    [image quality image quality enum] : Specifies quality of pictures in output file. 
    [keep text and background colors boolean] : Keeps background and character colors. 
    [use mrc boolean] : Compresses the output file significantly while retaining high quality of text and images. 
    [make pdfa boolean] : Creates a searchable PDF document that is well suited for archiving. 
    [create outline boolean] : Creates a table of contents in a PDF file based on headings. 
    [enable pdf tagging boolean] : Enables PDF tags. 
    [embed fonts boolean] : Embeds fonts from the document in the e-book. 
    → file : 

나는이 스크립트를 시도 :

이 나는이 기능을 가지고, FineReader의의 사전을 열 수 있었다. 뭐가 잘못 되었 니?

+0

에 파일을 저장해야합니다. 여기에서 찾으십시오 : http://macscripter.net/viewtopic.php?pid=178759#p178759. 일단 작업 솔루션을 얻은 후에는 여기에 게시 할 것입니다. – Markus

답변

1

pdf를 저장하기 위해 경로를 제공해야하는 것처럼 보입니다.

이 시도 :

tell application "FineReader OCR Pro" 
    export to pdf ((path to desktop) as string) & "test-export.pdf" 
end tell 

내가 ABBYY 지원에서 회신을 받았는데 바탕 화면

+0

글쎄, 내가 스크립트를 시작하기 전에 사용자 인터페이스를 통해 입력 파일을 OCR에로드하면 이제 작동합니다. 하지만 어떻게로드 할 수 있는지 알 수 없습니다. – Markus