Sort into subfolder using pattern matching wildcards

Hi!
I'm confused about how "Sort into subfolder" works. I'd love to match the subfolder name in the same way I match a file name, but I can't figure out how it's done. Here's my setup so far...
My goal is to match an EXISTING subfolder by the (•Project Number) token. However, I can't figure out how to ignore the text after the (•Project Number) in the desired subfolder.
For example, I want to automatically move these two files
XK23738-21 Project Report.pdf
BR84923-66 Project Report.pdf
to our server, which already has the folder structure:
RG83205-38 Haverson Habidashery
|-Timesheets
|->Reports
|->Expenses
XK23738-21 Turlock Renovation
|-Timesheets
|->Reports
|->Expenses
WT893127-09 Witter Yules
|-Timesheets
|->Reports
|->Expenses
BR84923-66 Medical Warehouse
|-Timesheets
|->Reports
|->Expenses
So when Hazel is done, it should look like this:
RG83205-38 Haverson Habidashery
|-Timesheets
|->Reports
|->Expenses
XK23738-21 Turlock Renovation
|-Timesheets
|->Reports
|----------->XK23738-21 Project Report.pdf
|->Expenses
WT893127-09 Witter Yules
|-Timesheets
|->Reports
|->Expenses
BR84923-66 Medical Warehouse
|-Timesheets
|->Reports
|----------->BR84923-66 Project Report.pdf
|->Expenses
How do I create a "Sort into subfolder" pattern that uses my (•Project Number) token to match the correct existing folder on the server?
I noticed that the pattern matching pallets are different when trying to create a token for a filename match versus a pattern for a "Sort into subfolder" match.


I'm confused about how "Sort into subfolder" works. I'd love to match the subfolder name in the same way I match a file name, but I can't figure out how it's done. Here's my setup so far...
- Code: Select all
If all of the following conditions are met
Name matches (•Project Number)(...)Project_Report(...)
Do the following to the matched file or folder
Sort into subfolder with pattern (•Project Number) NEED TO IGNORE TEXT HERE
Sort into subfolder with pattern Reports
My goal is to match an EXISTING subfolder by the (•Project Number) token. However, I can't figure out how to ignore the text after the (•Project Number) in the desired subfolder.
For example, I want to automatically move these two files
XK23738-21 Project Report.pdf
BR84923-66 Project Report.pdf
to our server, which already has the folder structure:
RG83205-38 Haverson Habidashery
|-Timesheets
|->Reports
|->Expenses
XK23738-21 Turlock Renovation
|-Timesheets
|->Reports
|->Expenses
WT893127-09 Witter Yules
|-Timesheets
|->Reports
|->Expenses
BR84923-66 Medical Warehouse
|-Timesheets
|->Reports
|->Expenses
So when Hazel is done, it should look like this:
RG83205-38 Haverson Habidashery
|-Timesheets
|->Reports
|->Expenses
XK23738-21 Turlock Renovation
|-Timesheets
|->Reports
|----------->XK23738-21 Project Report.pdf
|->Expenses
WT893127-09 Witter Yules
|-Timesheets
|->Reports
|->Expenses
BR84923-66 Medical Warehouse
|-Timesheets
|->Reports
|----------->BR84923-66 Project Report.pdf
|->Expenses
How do I create a "Sort into subfolder" pattern that uses my (•Project Number) token to match the correct existing folder on the server?
I noticed that the pattern matching pallets are different when trying to create a token for a filename match versus a pattern for a "Sort into subfolder" match.

