Page 1 of 1

Create subfolder structure from folder name

PostPosted: Thu Jan 08, 2015 3:56 am
by fucheeno
Hello Hazel folks,

I sure hope I can get Hazel to help me with this. I have a conundrum for sure.

I have a couple thousand directories with the format:

Client Name;Job Name

Each directory includes subfolders that contain files within them. The exact structure is:

Client Name;Job Name
->Contracts
Files
->Estimates
Files
->Plans
Files

What I want to end up with is:

Client Name
->Job Name
->Contracts
Files
->Estimates
Files
->Plans

Of course there is another catch. In doing this change there will be multiple client name folders that will match with different job names, i.e.:

Client Name
->Job Name 1
->Contracts
Files
->Estimates
Files
->Plans
Files

Client Name
->Job Name 2
->Contracts
Files
->Estimates
Files
->Plans
Files

God I hope that makes sense and that Hazel can help. I will pay for the software 3x over if it can!

Re: Create subfolder structure from folder name

PostPosted: Thu Jan 08, 2015 12:47 pm
by Mr_Noodle
I think something got lost in the formatting so I'm guessing on what you are shooting for. Are you trying to get:
Code: Select all
Client name
    Job Name 1
       Contracts
       ...
    Job Name 2
       Contracts
       ...


If so, I think that should be doable. Use custom attributes to grab the client name and job name from the original name and then sort into several subfolder levels using those attributes. Look up "match patterns" in the help. Also, I highly recommend you try this on some test files before doing it on the real thing.