Sorting into subfolders with part of source folder name

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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
tcgass
 
Posts: 31
Joined: Mon Oct 29, 2012 10:33 am

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.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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
tcgass
 
Posts: 31
Joined: Mon Oct 29, 2012 10:33 am

You can do something like "date added is not in the last X minutes".
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

That's a wrap! Perfect! Thanks a lot for that hint - this works great!
tcgass
 
Posts: 31
Joined: Mon Oct 29, 2012 10:33 am


Return to Support