I created a loop of subfolders. How can I prevent this.

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

Moderator: Mr_Noodle

My goal was to take a whole mass of files that were located all over my computer and sort them into subfolders by year and month. Then, run a rule on the subfolders to sort the files into subfolders by kind. This seemed to work, until I realized that on a portion of these, it created a loop. So, the rule would go into the month folders and sort into subfolders by kind, and then go into those subfolders and sort into subfolders by kind again, and so on and so forth. So ended up looking something like this - 2012-10>JPEG>JPEG>JPEG>JPEG>JPEG>Jpeg File. I shut down hazel before it ran through all the files, so it only goes so far. Now, I'm having to manually resort these. My two questions are:

1. How can I use Hazel to fix this problem and get all the files back up to the first kind subfolder?
2. How can I prevent this in the future?

Thank you so much for your help.
gbcosgrove
 
Posts: 3
Joined: Sat Apr 27, 2013 8:00 pm

(1) Probably easier to search for the files in Finder and just move them manually

(2) Use "Subfolder Depth" on your dive into subfolder rule.
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Thanks. I will make sure to do that in the future.
gbcosgrove
 
Posts: 3
Joined: Sat Apr 27, 2013 8:00 pm

You can also add a condition to filter out folders or folders matching the pattern of the folders being created.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

gbcosgrove wrote:1. How can I use Hazel to fix this problem and get all the files back up to the first kind subfolder?


Not sure about hazel but to fix it you might want to take a look at using a smart folder, trigger on type of file and last modified. If you are lucky and can narrow them down it may show you just the files that you moved on that date in which case you can grab them onmass and drag them to where they should be.
craw
 
Posts: 5
Joined: Fri May 10, 2013 6:03 pm


Return to Support