Page 1 of 1

File Moving "logic"

PostPosted: Sun Jan 08, 2023 12:09 pm
by jkpalmer52
Looking for an example (that probably has been described/discussed - apology in advance) that will help me with the following:

I have two folders Account XYZ and Account ABC.
Each folder has Year subfolders of 2022 and 2023.

I would like to develop a rule that moves a file to the proper account and subfolder based upon the content of a PDF, but I'm confused about how to construct this in Hazel.

I have Hazel identifying the Account folder from the file content but not sure how to inspect and extract the Year from the file content and use it for the subfolder directory before moving the file.

Help - pointers greatly appreciated.

-jP

Re: File Moving "logic"

PostPosted: Mon Jan 09, 2023 10:32 am
by Mr_Noodle
Look up "match patterns" in the manual. You can use a custom attribute to grab the year then use it in a Sort into subfolder pattern.