File Moving "logic"

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

Moderator: Mr_Noodle

File Moving "logic" 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
jkpalmer52
 
Posts: 9
Joined: Tue Feb 20, 2018 10:24 am

Re: File Moving "logic" 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.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support