V4 > V5.02 - Behavior to move a folder structure changed?

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

Moderator: Mr_Noodle

Hi,

after the upgrade a former working rule works different?

I move a folder structure with subfolders and PDF's to my archive-folder.

But in v5 "Processing Subfolders" is not working like before.

"Processing Subfolders
As a result, Hazel normally ignores specific changes inside subfolders of the monitored folder. So, suppose you’re monitoring your Downloads folder, and inside that is a folder called Research. If you have a rule that matches any PDF document and opens it in Preview—and you download a PDF to your Downloads folder, that file will open. But if you download a PDF directly to the Research subfolder, the rule won’t match, because Hazel ignores what goes on inside subfolders, unless you expressly tell it to examine them."


1) Rule "Go into subfolders" with action "continue matching rules" is in first position.

2) Rule move PDF's and folder structure
conditions:
Kind is PDF

action:
Move (copy folder structure from monitored folder)

Rule (2) is not working, because the PDF's in subfolders are not monitored. The condition doesn't fit.

It's in my mind, that version 4 works different and the new PDF-files are monitored and PDF's and subfolders added to the existing folder structure and missing new folders are added, too.


My try:

I change the condition to
Kind is folder

action:
Move (copy folder structure from monitored folder)

The rule fits, but it works only for the first run correct:
Run for the first time it works fine, the non exist folder structure will created.

The second run has the problem, that the folder structure still exist and a number is added to the moved identical folder structure.

My fault or a bug?
speedy_99
 
Posts: 58
Joined: Thu Feb 12, 2015 11:00 pm

Can you post images of your full rules? If you do not have a file sharing service of your own, you can use imgur.com and link to there.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Here the screenshots:

You can see, there are PDF's in the subfolders.

https://imgur.com/BVbdejp

https://imgur.com/yHBNu86

https://imgur.com/H27bYQI
speedy_99
 
Posts: 58
Joined: Thu Feb 12, 2015 11:00 pm

It looks like it's going into subfolders. Are you trying to match a folder against the second rule? If so, why? It's a folder, not a PDF. Are you trying to move/copy the whole folder or did you really mean this to be for PDF files?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Hi,

it schould move the folder structure with all files included to a folder.

The next step should copy all PDF's of the structure to another folder ("root" or base of a folder, not to subfolders).

The same rule I used with hazel v4 for weeks and it worked, as far as I can remember :D .



"Are you trying to match a folder against the second rule? If so, why? It's a folder, not a PDF."

Yes I did.

My try:

I changed the condition to
"Kind is folder"

action:
Move (copy folder structure from monitored folder)

The rule fits, but it works only for the first run correct:
Run for the first time it works fine, the non exist folder structure is created.

The second run has the problem, that the folder structure still exist and a number is added to the moved identical folder structure
speedy_99
 
Posts: 58
Joined: Thu Feb 12, 2015 11:00 pm

Sorry, but I do not see my fault.
The following I want to do. Instead of audio files or image files PDF files:

"Imagine Hazel is monitoring a folder in which you often place music and image files. You initially have two rules: one that moves audio files to your Music folder and another that moves image files to your Pictures folder. Your rules might look like this:

These rules work fine for individual files, but what if you drop a folder full of images or audio files into your monitored folder? Nothing would happen, because by default, Hazel matches only top-level items in the monitored folder, and the folder containing images or audio files does not, itself, match your rules. So you can add a third rule—the “Go into subfolders” rule described above:"


https://imgur.com/aLroMbw
speedy_99
 
Posts: 58
Joined: Thu Feb 12, 2015 11:00 pm

Are the PDF files named "Testfolder"? If not, there's no way that rule would have ever worked.

You have two options here.

1) Have the second rule match PDFs and move them. In the move/copy options, there's one to preserve the folder structure. What I'm not sure of if that will work in the second action (the Copy) since the file at that point will no longer be in the monitored folder (so it may be ambiguous what the folder structure is).

2) Copy the whole folder, in which case, keep the "Testfolder" condition, remove the PDF one. This will copy Testfolder over, which may or may not be what you want.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support