Extract name from content

Advanced Renamer forum
#1 : 23/08-22 21:44
Mythic
Mythic
Posts: 2
Hi all
I'm struggling with finding a script that would accomplish this miracle :
I have a bunch of PDF files that content some informations, and I would love a method to set the name of those files with one line inside it.
By example : file name = 01005741.pdf
In that file there is the line : Product : 7.92505
The final step will be the name = 7.92505_Kosher.pdf

The "_Kosher" part will be the same for all files.

Thank you in advance. Greetings !


23/08-22 21:44
#2 : 04/09-22 21:36
Mythic
Mythic
Posts: 2
Reply to #1:
Up
Any help ?


04/09-22 21:36
#3 : 25/09-22 14:59
David Lee
David Lee
Posts: 1125
Reply to #2:
You could do this easily with a text file, using a script to reading lines from the file using the <File Line> tag [called by app.parseTags()].

Unfortunately, a pdf file is unlikely to contain plain text.


25/09-22 14:59