Script to automate OCR with Hazel and Acrobat


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. try
  2. tell application "Adobe Acrobat Professional"
  3. activate
  4. open theFile
  5. tell application "System Events"
  6. tell process "Acrobat"
  7. tell menu bar 1
  8. tell menu "Document"
  9. tell menu item "OCR Text Recognition"
  10. tell menu 1
  11. click menu item "Recognize Text Using OCR..."
  12. end tell
  13. end tell
  14. end tell
  15.  
  16. end tell
  17. keystroke return
  18. end tell
  19. end tell
  20. save the front document
  21. close the front document
  22. end tell
  23. end try

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.