Struggling with subfolders

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

Moderator: Mr_Noodle

Struggling with subfolders Wed Jun 12, 2013 2:50 pm • by ijonesj
I have put the subfolder issue off as ling as I can but now need to accomplish a task that requires me to figure them out. I have read the subfolder sticky and other entries and still cannot get my rule to work correctly.

Maybe it is correctly figuring the subfolder depth to start with...
This is the path to the folder in question;

User>Folder 1>Folder 2>Folder 3>Folder 4>Folder 5>Customer>Completed Archive
Folder 5 contains 10 subfolders each containing Customer folders and a Completed Archive folder that the Customer folders are moved to upon completion.

So, I have a rule that acts on each Customer Folder in Folder 5 that is completed by labeling the folder Green and moving it into the Archive folder. That rule works great.

Each Customer folder contains a PDF that I want to auto-open in Preview. I set up an Open PDF Rule that states:

If All conditions are met for any of its sub-files or folders:
Kind is PDF
Subfolder depth is LESS than 3
then
Open with Preview.

It works but it also opens the PDFs in the Archive folder. That's a lot of PDFs.

I have tried varying the subfolder depth and that either makes the rule act on nothing or everything. Have also changed the initial line about what it acts on (any of its sub-files or folders:) with no success.

Suggestions anyone?
ijonesj
 
Posts: 14
Joined: Tue Mar 05, 2013 10:40 am

Re: Struggling with subfolders Wed Jun 12, 2013 2:53 pm • by Mr_Noodle
Read the subfolder article again. In short, stop using the "any of its subfiles" target (the article makes no mention of using that) and work off the rule in the article instead.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Struggling with subfolders Wed Jun 12, 2013 3:10 pm • by ijonesj
I guess I misunderstood the premise from the get go. So am I to set the "go into subfolders" rule up on its own then follow it up with a rule to open the PDF as mentioned in my post? Did not realize that.

I did the above by editing the rule thusly:
If all are met for the file or folder being matched
Kind is Folder
Subfolder depth is less than 3
then
Run rules on folder contents.

When I check the preview, the 4 customer folders AND the Archive folder all show "Go into subfolders."
I want it to ignore the Archive folder.
ijonesj
 
Posts: 14
Joined: Tue Mar 05, 2013 10:40 am

Re: Struggling with subfolders Wed Jun 12, 2013 3:47 pm • by Mr_Noodle
What folder is Hazel watching?
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Struggling with subfolders Wed Jun 12, 2013 3:50 pm • by ijonesj
Referring to my first post, Hazel is watching Folder 5.
ijonesj
 
Posts: 14
Joined: Tue Mar 05, 2013 10:40 am

Re: Struggling with subfolders Wed Jun 12, 2013 4:19 pm • by Mr_Noodle
In that case, anything directly under folder 5 is subfolder level 0. One below that is 1 and so forth so re-work the rule with that in mind.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Struggling with subfolders Wed Jun 12, 2013 4:39 pm • by ijonesj
By gosh, it worked. That's the tip I needed.
Many thanks
ijonesj
 
Posts: 14
Joined: Tue Mar 05, 2013 10:40 am


Return to Support