Batch conversion to OCR PDF and sorting in subfolders

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hi,

I'm trying to set up a rule that watches a folder for new JPG files, converts them with OCRKit to searchable PDFs and moves the processed JPG and PDF files into two subfolders.
The conversion itself is no problem (I let Hazel open the JPGs in OCRKit and run an automator workflow "to push the ok button" within OCRKit), but I can't figure out how to move the files then into two subfolders.

Since the rule only works on JPGs, I could easily use a second rule that simply moves PDF files to another location, but how can I tell Hazel "hey, this JPG has already been converted, so please put it into a subfolder (or any other folder)?

Thanks for all your hints,

Thomas (newbie... ;-)
tcgass
 
Posts: 31
Joined: Mon Oct 29, 2012 10:33 am

You can try something like this:
Code: Select all
    If all are met
        Kind is JPEG
        Name matches (• file name)
        If all are met for enclosing folder
            If all are met for any of its sub-files
                Kind is PDF
                Name matches (• file name)


(• file name) is a custom attribute you create to matching anything. To do the nested conditions, hold down option while clicking the + button to create a new condition. What this basically does is match any jpg file which has a file in the same folder with the same name, but a PDF. Note that this rule should fire before the PDF is filed away.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support