Page 1 of 1

Sort Into Subfolder => Loop

PostPosted: Thu Jan 15, 2015 11:26 am
by Muckefuk
Hi,
i'am new to hazel and try to do the following:
I Have a bunch of folders and sub folders. in all folders are pictures of different kinds.
What I want to achieve is to sort all dng and other raw files into subfolders.

My Rule looks like this:
Rule 1:
If kind is folder
then run rules on folder contents.

Rule 2:
if extension is not jpg
then move to sub folder with pattern "extension".

So far it runs fine. But after moving to the subfolder its is starting again so the files are moved again to a new subfolder ....

what do I have to do to terminate this?

Thanks in advance

Georg

Re: Sort Into Subfolder => Loop

PostPosted: Thu Jan 15, 2015 1:00 pm
by Mr_Noodle
Since you have it going into all subfolders, it is finding the file again when it digs into the subfolder you just filed it into. You need to modify rule one so that it doesn't go into these subfolders. I'm not sure how you differentiate these subfolders from the ones that already exist but whatever that is, you'll need to add a condition for that.

Re: Sort Into Subfolder => Loop

PostPosted: Wed Jan 21, 2015 8:20 pm
by Smudge
Change Rule 1 to

If ALL of the following conditions are met
  • Kind is Folder
  • Subfolder Depth is 0
Do the following
  • Run Rules on Folder Contents

This will make the rule only run on the monitored folder but not any subfolders.