Automatically move files to subfolders containing a code

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

Moderators: Mr_Noodle, Moderators

Hello, everybody. Let me introduce myself: my name is Matteo, I am 27 years old, I am a university researcher and a lawyer, as well as a neophyte in the world of Hazel and automation in general.
I am trying to use Hazel to automatically archive my research material.
I would kindly ask you to tell me if it would be possible to build a rule that moves all the files that contain a certain code into a subfolder that contains the same code, without having to build a new rule each time.
I'm trying to give you an example:
I catalogue my search files with a code, which identifies the reference argument (ex: DC=Civil Law; 001=tort - DP=Criminal Law; 001=fraud --> DC_001; DP_001 etc...). I'd like Hazel to put the files in the reference folders, which contain the same code without having to build a rule for each folder.
I hope I made myself clear and thank you in advance for your help!
gabbians
 
Posts: 1
Joined: Wed Aug 19, 2020 10:57 am

How do the codes appear in the file? Is there a consistent pattern to them?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion

cron