Page 1 of 1

Filter folders using "subfolders diving"

PostPosted: Fri Nov 02, 2012 4:07 pm
by gustao
Hello guys!

First, congratulations for great work!
Before start, let me say that I've read the "How to get Hazel to go into subfolders" and a lot of other topics, but I could not resolve this doubt.

This is the directory structure which I will refer:
Image
http://i.imgur.com/j5ZZY.png

my question:
Considering that I'm watching the first level folder ("watched folder"), is there a way to monitor only the "downloads" folder, excluding the same level "movies" and "images" folders? Or the easy way it's just watching the "downloads" folder?

In practice, i'd like to move all the folders (that are only inside the "downloads" folder) that contains a movie file to the previous level "movies" folder (move not only the movie file, but the folder and all your contents), and the same thing to all the pictures folders..

Considering that is possible to do that, i tried some combinations, like this:

start with the rule (name: looking for the downloads folder):
Code: Select all
If (all) of the following are met for (the File or Folder being matched):
     Name is Downloads

Do the following to the matched file or folder:
     Run rules on folder contents


and add this one, imagining that it would apply only to folders that have passed the previous rule (name: diving subfolder):
Code: Select all
If (all) of the following are met for (the File or Folder being matched):
     Kind is Folder

Do the following to the matched file or folder:
     Run rules on folder contents


and finally (name: moving folder containing images):
Code: Select all
If (all) of the following are met for (any of its sub-files or sub folders):
     Kind is Image

Do the following to the matched file or folder:
     Move to folder "abc"


Results:
the first rule (looking for the downloads folder), if alone, filter correctly, but when I add the second one (diving subfolder), only the second is applied.
The third rule (moving folder containing images), when I run directly in the "downloads" folder, does the job, but with the second rule running first (and as I said, ignoring the first one), nothing happens.

Yes, i know that simply setting the "downloads" folder as the watched folder I can get it work, but I was really challenged to succeed in doing this .. is it possible?

thanks!

Re: Filter folders using "subfolders diving"

PostPosted: Mon Nov 05, 2012 2:21 pm
by Mr_Noodle
It would be easier to monitor the downloads folder directly.

As for moving folders with certain files, you want to do something like:
Code: Select all
If all are met for (any subfile or subfolder)
    Kind is Movie
Then
   Move to "wherever"


That will move folders that contains any movies. You can likewise tweak it for other things like images.

Re: Filter folders using "subfolders diving"

PostPosted: Mon Nov 05, 2012 2:57 pm
by gustao
Thanks :)