Page 1 of 1

Match PDF against list, add all matches to comments

PostPosted: Wed Feb 24, 2021 1:56 pm
by norman000
I'm matching the contents of PDFs against a list in a text file, and would like to write matches to Comments. The text file contains names. I can match against the list just fine, but Hazel only writes the first name, e.g. if the list contains John, Peter and Matt, Hazel only adds John if John and Peter are found in the PDF. I want Hazel to write all matches to Comments, not just the first one. Is there a way I can do this?

Re: Match PDF against list, add all matches to comments

PostPosted: Thu Feb 25, 2021 10:32 am
by Mr_Noodle
There's no way to do it for a variable number of matches at the moment. You'll probably need to write a script to do this part.

Re: Match PDF against list, add all matches to comments

PostPosted: Thu Feb 25, 2021 1:16 pm
by norman000
Mr_Noodle wrote:There's no way to do it for a variable number of matches at the moment. You'll probably need to write a script to do this part.


Thanks, I'll try that.