Page 1 of 1

Run Selective Commands on Sub-Folders

PostPosted: Sun May 05, 2024 4:20 am
by klind
I am trying to run one command just on the root folder and another command on all sub-folders of that root. I have tried it several ways and I can't seem to figure out the correct pattern to accomplish what I want so I would like a little help.

The command to process on all files to include those in sub-folders is:

If all
Kind is not Folder
and Date added is not in the last month
Do
Remove Any Existing Tags

The command to process only files in the root is:

If all
Kind is not folder
Subfolder Depth is 0
Do
Move to folder Catchall

Then of course I add the Process Sub Directories rule.

The problem is that when I run the rules for the given folder every file in every folder gets moved, not just the files at the root folder which is what I want. It seems that because of the Process Sub Directories rule as it processes each subfolder it treats all files as if they are at subfolder depth 0.

I've tried arranging the rules in different order but I cannot seem to get this figured out... Please give me some advice.

Re: Run Selective Commands on Sub-Folders

PostPosted: Mon May 06, 2024 11:17 am
by Mr_Noodle
Can you post a screenshot of the rule status window?

Re: Run Selective Commands on Sub-Folders

PostPosted: Mon May 06, 2024 4:55 pm
by klind
Thanx Mr_Noodle

My Mac was acting strange in other regards so I rebooted, deleted the rules and rewrote them. All is working well now. Unfortunately I didn't retain the rules that were acting funny so the rule status screen shot will now not show a problem.

Please delete this thread...

Regards,

Ken