Page 1 of 1

Automatically move files to subfolders containing a code

PostPosted: Wed Aug 19, 2020 11:12 am
by gabbians
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!

Re: Automatically move files to subfolders containing a code

PostPosted: Thu Aug 20, 2020 10:46 am
by Mr_Noodle
How do the codes appear in the file? Is there a consistent pattern to them?