tell application id “DNtp”
display alert “hi”
if the current view is a group, it works for both group or document with attached script
if the current view is a smart group, it works only for group, on documents the attached script is not triggered.
if someone is interested in user interaction,
i have a document and want to show related ones in another window (tag filtered) pressing space bar.
i’ve simply remapped spacebar key only in DEVONthink application, if longpressed it launch a script that do the job.
eg. in a smart group having all items, say, with red label, i have a selected records; i want pressing space to show related records (eg. with same parents) in another window (eg. showing tag @related)
i modified beaviour of spacebar key, only inside DevonThink, via Karabiner Element; pressing and helding spacebar a smart rules is triggered, a script will check conditions end eventually apply tags to parent group, showing related document inside filtered view.