Sorting PDF based on contents

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Sorting PDF based on contents 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!
dtos
 
Posts: 5
Joined: Sat Mar 08, 2014 6:08 pm

Re: Sorting PDF based on contents 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.
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Sorting PDF based on contents 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.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am


Return to Support