As the subject line suggests I want to use Automator to move a pdf into DTP, OCR the resulting import and then move the document to a new group with a new name. However, I’m stuck on a couple of issues.
I should also note that I want to do this without using applescript.
Looking at the OCR DTP function in Automator I couldn’t see any way to apply it from within DTP. So I took the following approach. I indexed a folder external to DTP with the intention of applying the OCR function to the file when seen from the Finder. To test this I created an Automator Service that has the following steps.
- Get Selected Finder Items
- OCR Items (The DTP function)
- Rename PDF documents
This ‘sorta’ works but with the following problems:
- I end up with two pdf documents, both have a text layer.
- The resulting pdf’s are moved to whichever DTP group is currently in focus within DTP. I’ve tried controlling this by adding Automator elements that open a specific database and make a particular group active, but that doesn’t work and the pdf’s still go to the last highlighted group in DTP.
- The renaming function doesn’t work, perhaps because its a finder function and the new file is inside DTP.
I searched around the forum for help on this but it seems that a lot of solutions use applescript. I couldn’t find any documentation on an automator approach.
Ultimately I want to use Hazel to detect downloaded files and move them to folder where they can be imported into DTP, processed and stored in a specific group.
I would really appreciate some guidance on how to apply the OCR function using Automator and any other wisdom that anyone can impart on this subject.
Thanks