Page 1 of 1

Find specific folder's content and move to new folder

PostPosted: Fri Dec 17, 2021 12:04 pm
by Hokusai
Hello there

Here is my situation

Photoshop has a quick function: Export as: it creates a folder containing the name -assets
I am looking for a way to grab the files into the asset folder and move them to a folder called mock-ups. Its just much more clean in my head.

So my structure is: Jobs > Client > Jobs (multiple folders)
Each job folder can have multiple projects so in those project folders an -asset folder can be found.

How do I ensure it finds all -asset folders and move its contents to a new folder in the root of the project folder (aka not in the folder -assets) but one level up.

I have been trying too hard to make it work, but I just can't.

Thank you for your insights.

Re: Find specific folder's content and move to new folder

PostPosted: Mon Dec 20, 2021 9:31 am
by Mr_Noodle
You will need to have Hazel go into subfolders. The manual has a whole chapter on this and I suggest reading it carefully.

The Move action has a target of the enclosing folder.

The tricky part is to make sure you structure the rules/conditions such that files that have already been moved are not processed again, since the destination folder would still be reachable by the subfolder rule.