Smart rule for "Exclude From…"?

I’d like to be able to drop a document onto a special folder and have the document be Excluded From both Classification and See Also (but not from Search). I can’t see how to make a Smart Rule for that, so is a script the only option?

If the latter, I’d be grateful to have one; I imagine it would be very short.

Many thanks.

Here’s a quick script that sets those options on selected files…

tell application id "DNtp"
	repeat with thisRecord in (selected records)
		set exclude from see also of thisRecord to true
		set exclude from classification of thisRecord to true
	end repeat
end tell

Much appreciated. :star_struck:

Is there a way to have this run automatically on dropping a file on a folder?

You can also use Exclude From for wiki links, classification, etc. as part of a smart rule. See this script by @pete31:

You’re welcome.

On what folder?

Sorry. Group. :woozy_face:

Haha! I meant what group are you referring to that would affect this change on files?

Any Group I choose to be that special bin.

I’ve a Group I call TARTARUS whose contents I want to keep in the database but Exclude from Classification and See Also. I’d like to be able to just drop any Document or set of Documents on that Group and have them be so excluded.

E.g. a smart rule could be performed On Importing and On Moving and execute a similar script:

on performSmartRule(theRecords)
	tell application id "DNtp"
		repeat with theRecord in theRecords
			set exclude from see also of theRecord to true
			set exclude from classification of theRecord to true
		end repeat
	end tell
end performSmartRule

Great! Thanks very much for all the help everyone. :+1: