I need to create a few smart rules that look at whether an item’s tag is in a list of items (the “IN” thing in databases, programming, etc) - and I suspect I can’t do that in DevonThink.
I can do a clause “Tag is” then start typing tags and select them from the ensuing pop-up, but it is way too many.
Any ideas, hacks, etc? Can I access the smart rule code and do it manually (copy & paste) from, say, BBEdit?
yeah, the old trick of using separators
BTW, I meant the “IN” as in the SQL “value is in { }”
These are regular DT file tags, I use them a lot, shallowly. E.g., “Flower”, “Stem”.
But also, “Section”, “Family”, “Etzold” and so on (some are systematics terms, other are microscopy terms, others are technique, people, etc)
Because I have maybe 100k items, and I haven’t been a good boy tagging from the (remote) beginning, I wanted to go back and add a tag “Botany” to all items that have at least one of these tags - of which there are dozens.
Now that also applies to another big section of my files, “Arthropoda”. And then there is “Protista”
yep.
So pseudocode:
Look at every item in the database
Does it have at least one of the tags in { }
If so, add tag “Botany”
So I was trying to construct something as a set, rather than a very large number of ORs
And, Jim, I believe it has to be done this way, because inside my group hierarchy, there are sometimes groups and items that don’t (and shouldn’t) have any of these special tags, so en masse dragging groups over the tag “Botany” won’t work.
And this is the kind of stuff I was tagging… (and avoiding the use of hierarchical tags, which I also avoid in Lightroom because they always end up breaking)