Tagger Agent Hiding Tagger Container

When setting an Agent to collect notes containing a tag the result includes the original container that holds the tags. Is there a way to omit this from the list. I tried the following to no avail.

$NLTinderbox.contains("TinderboxHelp") & !$Path.contains("Hints")

I believe that query ought to work. I’d check it for curly quotes or some other typo.

If that doesn’t solve the problem, check whether !$Path.contains(“Hints”) finds the notes you expect it to find.

The !$Path.contains("Hints") is everything on the path /Hints/... though I suspect you are only trying to exclude one container. Let’s call that ‘Tag Box’. You could then use:

$NLTinderbox.contains("TinderboxHelp") & $Name!="Tag Box"

By putting the exclusion at the end, as you have (in your original code) usefully it is only notes that have the desired tag that get the second test. Good for efficiency

Thanks for the responses.

Solution #2 Worked.

Solution #1 didn’t work after retyping.