- Code: Select all
- try
 tell application "Adobe Acrobat Professional"
 activate
 open theFile
 tell application "System Events"
 tell process "Acrobat"
 tell menu bar 1
 tell menu "Document"
 tell menu item "OCR Text Recognition"
 tell menu 1
 click menu item "Recognize Text Using OCR..."
 end tell
 end tell
 end tell
 
 end tell
 keystroke return
 end tell
 end tell
 save the front document
 close the front document
 end tell
 end try
Follow this up in Hazel with a "move to folder" and "growl notification" and I think it is a pretty elegant solution. I could have done the whole thing with folder actions, but i find that they are pretty unreliable at times. Not to mention that I need to maintain the code if I decide to change the workflow. It's not worth the effort.
I hope this helps someone else. I guess I will go and buy Hazel now.
Gabe
