Scripting and global smart groups

Global smart groups seem to be treated differently by DT than local (ie database-specific) smart groups:

  • For local smart groups, the item link protocol is ‘x-DEVONthink-item’, whereas for global ones, it is ‘x-DEVONthink-smartgroup’
  • For a local smart group, getRecordWithUuid works as expected. For a global smart group, it returns null.

Would it be possible to introduce some kind of “virtual” or “mega” database containing global smart groups? Just an idea, as that could make scripting more consistent – if an item has a UUID and is a smart group, it should be possible (IMO) to treat it the same regardless of it being local or global.

Right now, a script can’t access any properties of global smart rules (it seemt to me). Which makes programmatic creation and modification of these rules impossible.

Global smart groups/rules aren’t database records, therefore x-devonthink-item links and all AppleScript commands requiring a database or record aren’t supported.

Scriptable smart groups are planned for future releases but not that way.