Page 1 of 1

Moving Files into subfolders

PostPosted: Fri Sep 04, 2020 9:51 am
by chrisechols
I'm trying to get hazel to organize my zoom recordings that I download from the cloud. I want to group all files with the same first few charaters into their respective folders.

If I can get the subfolders to take the name of the date and time that would be great.

GMT20200727-194308_Wallace-Jo_1920x1080.mp4
GMT20200727-194308_Wallace-Jo.m4a
GMT20200804-214016_Chris-Echo_640x360.mp4
GMT20200804-214016_Chris-Echo_640x360.mp4

Re: Moving Files into subfolders

PostPosted: Fri Sep 04, 2020 10:14 am
by Mr_Noodle
Look up "match patterns" in the manual. You can have it grab the parts of the name you want to use into custom attributes and then use those in a Sort into subfolder pattern.

Re: Moving Files into subfolders

PostPosted: Sat Sep 05, 2020 9:58 am
by chrisechols
Mr_Noodle wrote:Look up "match patterns" in the manual. You can have it grab the parts of the name you want to use into custom attributes and then use those in a Sort into subfolder pattern.


I've been trying this but can't figure out why I can't match just the parts I want while disregarding the rest.

I'm used to using Grep in BBEdit so I'm sure I'm overthinking how this should work.

For instance, I can only seem to match GMT20200804-214016_Chris-Echo_640x360.mp4 by using {abc}{123}-{123}_{...}

When all I want it to match and create a subfolder for is {123}-{123}


https://www.dropbox.com/s/ayrshgb2kfywz ... M.png?dl=0

Re: Moving Files into subfolders

PostPosted: Mon Sep 07, 2020 9:12 am
by Mr_Noodle
You need to use custom attributes to re-use the parts you want to save. Please read the chapter in the manual as it has more details on how to do that.