Move into subfolders based on first word?

Let's say I have a folder with these files...
I want Hazel to look at files that were added before today, and move them into a subfolder based on the first word of the filename.
So all the files beginning with AAA would go into an AAA subfolder, the BBBB's into the BBBB subfolder, etc.
Is this possible?
- Code: Select all
AAA foo1 30.mov
AAA bar 15.mov
AAA lorem.mov
BBBB foofoo2.mov
BBBB barbar 50.mov
CCCCC ipsum 30.mov
CCCCC gamma 10.mov
I want Hazel to look at files that were added before today, and move them into a subfolder based on the first word of the filename.
So all the files beginning with AAA would go into an AAA subfolder, the BBBB's into the BBBB subfolder, etc.
Is this possible?