Move files based on partial FOLDER name

Is there a way to move a file to a folder based on a partial match of the folder name?
For example, I name my file yyyy-mm-dd last, first yy-nnn Some other title
The folders structure is as follows:
What I want to do is have Hazel match the yy-nnn token in the file name, let's say it contains 12-001 to the 12-001 portion of the subfolder name.
Let's say I have a file named "2013-06-08 Last1, First1 12-001 My New Note". This should be filed in Matters => Last1, First1 =>12-001 Some description
I have used the custom tokens to parse out the file name. However, what happens is that Hazel navigates to the correct Last1, First1 folder and then creates a new folder "12-001", ignoring the existing folder "12-001 Some description" so we end up with the following structure:
Any thoughts much appreciated.
Kind regards,
Judi Smith
For example, I name my file yyyy-mm-dd last, first yy-nnn Some other title
The folders structure is as follows:
- Code: Select all
Matters
Last1, First1
12-001 Some description
12-002 Some other description
Last2, First2
12-003 yet another description
12-004 and another description
What I want to do is have Hazel match the yy-nnn token in the file name, let's say it contains 12-001 to the 12-001 portion of the subfolder name.
Let's say I have a file named "2013-06-08 Last1, First1 12-001 My New Note". This should be filed in Matters => Last1, First1 =>12-001 Some description
I have used the custom tokens to parse out the file name. However, what happens is that Hazel navigates to the correct Last1, First1 folder and then creates a new folder "12-001", ignoring the existing folder "12-001 Some description" so we end up with the following structure:
- Code: Select all
Matters
Last1, First1
12-001
12-001 Some description
12-002 Some other description
Last2, First2
12-003 yet another description
12-004 and another description
Any thoughts much appreciated.
Kind regards,
Judi Smith