Page 1 of 1

Sorting PDF based on contents

PostPosted: Wed Apr 06, 2016 4:24 am
by dtos
Right now, I have a "inbox" folder. Hazel watches it, and then looks if it is a pdf and if the contents contain the word (for example) "dog". If it does, it moves it to the folder "/base/dog" ..

I'm basically duplicating this rule like 70 times for different keywords. So, "cat" goes to "/base/cat"

Is there a way to simplify this? I was thinking if hazel could get the list of folders in "/base/" and then use the results as an array of some sort to check the PDF contents? If a match is found, then move into that folder.

Make sense? How can I improve/create this kind of workflow?

Thanks!

Re: Sorting PDF based on contents

PostPosted: Wed Apr 06, 2016 9:51 am
by Mr_Noodle
Interesting idea but you'll need to use a script for that for now. While I am looking into some way of managing and using lists within Hazel, that is still a ways off.

Re: Sorting PDF based on contents

PostPosted: Fri Apr 08, 2016 6:35 am
by MacOCD
This would be very interesting for me too, I have individual rules for each invoice I email out via Hazel based on a customer code.