Exclude sub groups from classification

Hello!

I have a group with several subgroups that I want to exclude from classification. Do I have to do this individually for each subgroup (which is tedious!), or is there a way to exclude them collectively? I noticed that this issue has been discussed in the forum before, but I couldn’t find any evidence of it being implemented. There is also no mention of it in the documentation.

On a related note, is it possible to exclude an entire database from classification?

Best regards,
Per

An exclusion on a group is not inherited by its subgroups.

And no, you can’t exclude a database. If you are trying to limit classification, you can enable Current database only.

I reply here with this note:

I confused myself mightily with a smart rule ‘because’ the exclusion from search was inherited by a sub group. My most recent understanding is that - at least search exclusion - is inherited. I am including the link to the entire thread.

Scripting can help with repetitive tasks. Select the master group and run the following script:

tell application id "DNtp"
	set theGroup to selected record 1
	set subgroups to (search "kind:group" in theGroup)
	repeat with theSubgroup in subgroups
		set exclude from classification of theSubgroup to true
	end repeat
end tell

This looks great! I will try it as soon as possible. Thank you :pray::grinning: