Match PDF against list, add all matches to comments

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

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?
norman000
 
Posts: 2
Joined: Wed Feb 24, 2021 1:45 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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.
norman000
 
Posts: 2
Joined: Wed Feb 24, 2021 1:45 pm


Return to Open Discussion

cron