Apple Event Support
Technical Information - 124
Schedule OCR dialog box. The default output folder is called Output
Files
. If this call is never made, the output file name will be the same as
the input file name, with the word Output added.
scan and ocr
Event Class
‘
RFU
’
Event ID
‘
VFDQ
’
Returns:
descriptor type:
long
data:
N$(6XFFHVV
if OCR was successfully started
N$(-RE$GGHG7R4XHXH
if this job was only added to the
job queue because another
document is already open
N$(-RE4XHXH,V)XOO
if the job could not be added to
the queue because the queue
already has 256 jobs
This function adds a job to the processing queue that will be scanned
and recognized. If this call returns
N$(6XFFHVV
, OmniPage Pro
immediately starts scanning and recognizing the job in the background.
Once recognition is complete, the text is saved with the file name and
format specified by the set output file and set output format calls.
If this call returns
N$(-RE$GGHG7R4XHXH
, that means a document is
open in OmniPage Pro and the job cannot start until the document is
closed.
You can scan and recognize multiple pages with this function if your
scanner has an ADF. Make sure Scan until Empty is selected in the
Scanner
section of the Settings Panel. Scanned and recognized pages will
be saved as one document. However, the Double-sided Pages setting is
ignored when scanning with Apple Events because this option requires
manual intervention.
load and ocr file name or load and ocr {filename1,
filename 2...}
Event Class
‘
RFU
3’
Event ID
‘
ORFU
’
Parameter:
keyword:
‘----’ (direct parameter)
descriptor type:
TEXT