Page 1 of 1

Sorting into subfolders with part of source folder name

PostPosted: Mon Oct 29, 2012 10:55 am
by tcgass
Hi

can anyone give me a hint on how to achieve the following rule:

I have hundreds of project folders that are named according the rule: "clientname - projectname". What I want Hazel to do is create a subfolder with the client name, move the "clientname - projectname" folder into it and change the folder's name to "projectname".

Is there a way to go for it?

Thanks for your hints and tips to a Hazel newbie,
Thomas

Re: Sorting into subfolders with part of source folder name

PostPosted: Mon Oct 29, 2012 2:02 pm
by Mr_Noodle
Search the help for "match patterns". Use those to create custom tokens for the clientname and projectname. Use the clientname token in the Sort into subfolder action's pattern and then use the projectname token in the Rename action's pattern. That should do it.

Re: Sorting into subfolders with part of source folder name

PostPosted: Tue Oct 30, 2012 5:22 am
by tcgass
Thanks a lot! Works like a charm!
The only issue is, that the rule immediately runs while I'm copying a project folder on the target disk, so the copy process stops because the target folder already moved into a subfolder.
Is there anything I could do to "delay" the rule, or automatically disable and enable it for the time new data is copied to the target disk?

Thomas

Re: Sorting into subfolders with part of source folder name

PostPosted: Wed Oct 31, 2012 11:23 am
by Mr_Noodle
You can do something like "date added is not in the last X minutes".

Re: Sorting into subfolders with part of source folder name

PostPosted: Wed Oct 31, 2012 3:01 pm
by tcgass
That's a wrap! Perfect! Thanks a lot for that hint - this works great!