Script to OCR a folder of documents
Script to OCR a folder of documents
- Subject: Script to OCR a folder of documents
- From: DuaneWQ <email@hidden>
- Date: Wed, 10 Jul 2002 13:01:25 -0700
Hello. I am new to this list.
I am working on a script that will loop through all the files in a
folder to OCR them with OmniPage.
OmniPage's load and OCR command requires the path and file name for
the argument.
load and OCR "WisdomQuesteLibrary:ScannedDocs:afile.pdf"
I need to replace the path and file name with a variable that combines
the two variables source_folder and scanfilename. scanfilename is
updated from the list each time the repeat is executed. I tried this
but it doesn't work. I get a -4 error when I run it.
tell application "Finder"
set the source_folder to alias "WisdomQuesteLibrary:ScannedDocs:"
set the scan_list to every file of the source_folder as alias list
repeat with this_file in the scan_list
set the current_name to name of this_file
set scanfilename to current_name
tell application "OmniPage Pro X"
load and OCR source_folder & scanfilename
end tell
end repeat
end tell
Regards,
Duane Bemister
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.