Crazy suggestion: accept links in search boxes

Well, you didn’t reply to my initial question which perhaps irritated you. If it’s the case, all OK.

I am working on a alternative way to move items in DevonThink using typinator in addition to DevonThink

My script question concerns the script in the link below.

The script generates a huge list which is a dizzying mishmash of name + links of trash, tags, groups, subgroups and docs.

To implement my typinator strategy I would need to modify the script listing of only Groups and SubGroups names and Links.
If possible, subgoups start with a tab under the group name.
I don’t want to include listing of tabs, documents.

I just can’t figure out what to edit in the script.

thank you