• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Script to OCR a folder of documents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Scripting Entourage to Send Mail in Chunks??
  • Next by Date: Re: Deleting resource forks
  • Previous by thread: Re: do shell script administrator privileges bug?
  • Next by thread: RE: Script to OCR a folder of documents
  • Index(es):
    • Date
    • Thread