Subfolder matching no longer working

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

Moderator: Mr_Noodle

Subfolder matching no longer working Tue Oct 28, 2014 6:21 pm • by xor2000
Hi,

some rules with conditions on subfiles and subfolders no longer seem to work after updating to OS X 10.10 and also updating Hazel (currently on 3.3.1)

For example, I would like to find folders that contain at least one other folder.

I had a rule that worked in the past:

Code: Select all
If ALL of the following conditions are met:
 Kind is Folder
 If ALL of the following conditions are met for ANY OF ITS SUBFILES OR SUBFOLDERS:
  Kind is Folder


The rule does not match a folder that contains one (or more) folders but it did before.

I think this is a bug.
xor2000
 
Posts: 13
Joined: Mon Oct 17, 2011 4:54 pm

Re: Subfolder matching no longer working Wed Oct 29, 2014 2:00 pm • by Mr_Noodle
Thanks for the report. Looking into it.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Subfolder matching no longer working Wed Oct 29, 2014 10:48 pm • by JaredChi
I've got a similar issue: I can no longer create a rule that sorts files into subfolders by Date Created divided by quarters; every time I try, the rule changes to subfolders divided by month instead. My existing sorting rules seem to be working fine. Mid-2014 MacBook Pro running Yosemite 10.10.0 and Hazel 3.3.1.
JaredChi
 
Posts: 2
Joined: Wed Oct 29, 2014 10:45 pm

Re: Subfolder matching no longer working Thu Oct 30, 2014 10:03 am • by Mr_Noodle
I don't think that is related. Are you saying you are creating a rule to sort by quarters and it changes to months? Or does the rule look ok but when you run it it files into months? And is this a rule created from scratch or are you editing an existing rule?

I'm working on a patch and want to release soon so if you can email support with the necessary files/details sooner rather than later, there's a chance a fix can get in this patch in time.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Subfolder matching no longer working Fri Oct 31, 2014 12:37 am • by PStehr
I have observed the same problem as the OP, running Hazel 3.3.1, but running on OSX 10.9, so it's obviously not related to the OS version.

I also have another problem, related to processing folder contents:

I have the following rules set up

1st rule:

Code: Select all
If ALL of the following conditions are met
 Extension is [mp4]
Then do the following to the matched file or folder
 Move to [Video Folder]


2nd rule
Code: Select all
if ALL of the following conditions are met
 Kind is [Folder]
 Name does not start with [000]
Then do the following to the matched file or folder
 Run rules on folder content
 


With no further rules following the above, still files within a subfolder of the watched folder that are matching rule No 1 are moved to the [Video Folder].

It is my understanding, that the rules are processed in sequence as listed, which IMHO should not let this happen.

On a different note: I love Hazel. Wouldn't know what to do without it. Thanks for the great work, Mr. Noodles
PStehr
 
Posts: 4
Joined: Sun Sep 08, 2013 5:02 am
Location: Bangkok

Re: Subfolder matching no longer working Fri Oct 31, 2014 12:02 pm • by Mr_Noodle
What your first rule is saying is that anytime it finds an mp4 anywhere, move it to video folder. If you only want that to happen in certain cases you need to either (a) limit where Hazel goes, which it looks like you try to do in rule 2 and/or (b) add extra conditions to rule 1 to limit where that condition can be true. Using Subfolder depth is a good way to accomplish (b). I'm not quite sure what you exactly want in this situation but try and do one or both of the above to get the intended result.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Subfolder matching no longer working Mon Nov 03, 2014 4:04 am • by PStehr
Hi Mr. Noodles,
the first rule was supposed to move mp4 files that were in the watched folder itself. This rule does work, however, I did not expect that rule to descend into sub-folders.
The 2nd rule was the beginning to moving mp4 files from sub-folders, however, I noticed that as soon as I entered the "process sub-folder" rule, it moved the mp4 files, without that I had defined a move rule AFTER the "process subfolders" rule. I can't imagine that that is how it's supposed to work, or is that actually by design?

If I disable, for test purposes, the "process sub-folder" rule, only mp4s located directly in the watched folders get moved. mp4 files in sub folders do not produce a match (as they shouldn't) and stay where they are.

I can send you the exported rules if you like to.
PStehr
 
Posts: 4
Joined: Sun Sep 08, 2013 5:02 am
Location: Bangkok

Re: Subfolder matching no longer working Mon Nov 03, 2014 9:40 am • by ravarelab
I am new in Hazel to using subfolders, so maybe it is unrelated. If it is, I apologize.
I am trying the simplest subfolder example, the one that could be found in the support page "How to get Hazel to go into subfolders".
I created a "Hazel demo folder" on my Desktop, and inside I made another folder called "First" where three files can be found.
I added in Hazel a folder to look up, the "Hazel demo folder". I downloaded and installed the demo rule.
I added a single line to the demo rule, to colorize the files it finds within "Hazel demo folder" (so within "First" ), since I just want to have all my three files with a color label.
The only thing I obtain, is to have the folder "First" colorized, not its files. I may be do something wrong, or is it the bug mentioned here?
Using Yosemite and last Hazel version (3.3.1) (build 1200)

Thanks appreciated
ravarelab
 
Posts: 1
Joined: Mon Nov 03, 2014 8:42 am

Re: Subfolder matching no longer working Mon Nov 03, 2014 4:52 pm • by Mr_Noodle
PStehr: Please follow me previous advice. If you want the rule that operates on mp4's to only apply in certain cases, then specify those cases in the conditions. As it is, it applies anywhere where Hazel finds mp4s.

ravarelab: It is unrelated but since you are here, please read the article again. You are doing exactly as the article warns you against.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Subfolder matching no longer working Tue Nov 04, 2014 8:26 pm • by xor2000
Mr_Noodle wrote:Thanks for the report. Looking into it.


I can confirm the issue is fixed in release 3.3.2, thanks a lot!
xor2000
 
Posts: 13
Joined: Mon Oct 17, 2011 4:54 pm


Return to Support