Batch rename a alrge number of pdf files
Hello,
I am aware that this issue has already been discussed previously but I could not find a solution for my problem.
I have created a larger number of ~4000 pdf files by scanning paper documents. I batch converted them to OCR text documents (the quality of the scans was quite good). Now I would like to rename the files based on the content of the individual files. Of course it would be very nice if this task could be automated.
All the files have a similar structure and they contain a text line on the first page:
<standard text> <family name>, <given name(s)>, * <date of birth> <other text>
I would like to rename the files (or created copies of them) such that the new files / copies have the file names <family name>, <given name(s)>.pdf.
<standard text> is always the same text (in two variants - for male/female).
Is it possible to use a script to batch rename this large number of files? Unfortunately I myself have no experinec with scripts and have never created one ... I would be very grateful for any help or suggestions.
(I am using Mac OS.)
