Page 1 of 1

Help!

PostPosted: Mon Jan 12, 2015 5:01 pm
by GoUtes
I am certainly not a coder and created a pretty good P.B.C.A.C.

I used an OCR program to OCR all my files on my computer and it DELETED the original PDF and created a new pdf with *OCR.Pdf.

I do have backups of all the original pdfs.

I am looking for a Hazel script that can put all the original pdfs back in their original folder (that now contains the replaced *.OCR.pdf file.

The script would have to match the file name up to the additional OCR versus just .pdf

MATCH
File1234.OCR.PDF (note, these will have a very new file created date)
File1234.pdf (this will have the original dates intact)

The file sizes WILL NOT MATCH because the OCR removed all graphics and only have CHARACTERS left.

The difficult pdf moves will be "Untitled.Pdf" vs Untitled.OCR.Pdf (not sure what other unique identifier could be used) Maybe I can only have the script handle files without duplicate file names?


MOVE File1234.pdf into folder MATCHING File1234.OCR.PDF

Since all of the OCR.PDF files (1400 of them) where all created on two days, I can then delete all of the OCR.PDF's after I have the originals in the proper place.

Is there anyone that can help with the script?

THANKS!!!!!!!

Re: Help!

PostPosted: Mon Jan 12, 2015 5:39 pm
by Mr_Noodle
I think you'd have to use a custom script for this. I can't think of a good way to correlating these files in separate locations using built-in conditions. Not sure if anyone here is willing to write such a script for you but you might also want to try a more general scripting site or hire someone to write one.