If I understand what you are doing, would you be equally happy when DevonThink allowed nested Smart Groups?
Smart Group → search on a key term
– Sub-Smart Group → documents that are PDF
– Sub-Smart Group → additional search on term “homework”
– Sub-Smart Group → additional search on term “exams”
…
What you’ve proposed sorts the matches of a key term into sub groups. (I used sorting in my post. Sending would be more accurate.)
The purpose of the smart rules (the creation of which I’m hoping to automate on the creation of a parent group) is to send documents (using tags) from the global inbox to an associated folder in another database.
My general use case is that I dump myriad files from various sources (emails, documents, notes etc) in my inbox. These files are related to distinct subject matters (for each of which I have an associated group & tag). I peruse my inbox and give each file a subject matter tag. My set of smart rules sift then recognize those files with their tag and send them to their respective folder.
When I create a new subject matter (currently using Shortcuts for this), a folder & tag are created simultaneously. It’s not possible to create smart rules using Shortcuts directly, but I’m looking for other ways I might accomplish this. At the very least I’d like to learn if automating the creation of smart rules is possible.
Isn’t it possible to create a report of type smart group and then set its properties accordingly? I seem to vaguely remember that I did something like this.
Can’t check right now since I’m away from my DT desktop.
Why don’t you use a script in one smart rule? A similar issue has been discussed here
In my opinion, having a bunch of smart rules doing basically the same is pointless (and difficult to maintain). Instead, a single rule (or a very small set) can use a single (or a small set) of scripts to distribute the documents to the corresponding groups/databases.
Also, you can write script that adds a new rule to the distributing script whenever a new subject is created. Which might be kind of tricky and will work only with external scripts. But still: It is feasible.