A kind of a temporary workaround
Bind it a key
BTW, @Jacob, a strange behavior of add recent
function… If you remove a delay
in this script - all goes without an error, but recent item is not added…
The script is quick, and if it is possible to remove the delay
, then one can create a smart rule for “on open” event for the Group using this script.
-- Script to add selected DT Group to Trickster's Recents
-- Created by Silverstone on 12.07.2021
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
tell application id "DNtp"
set theRecords to (get selection)
if (count of theRecords) = 1 then
-- Data for recent item
set theRecord to item 1 of (get selection)
set {GroupURL, GroupName, GroupLocation} to {reference URL, name, location} of the theRecord
set AppName to name
-- Finding or creating 'Group Links' DT group in Inbox of current database to store all link files
set theFound to search "name==Group Links kind:group" in the incoming group of current database
if (count of theFound) is 0 then
set theGroupLinks to create record with {name:"Group Links", type:group} in the incoming group of current database
else
set theGroupLinks to item 1 of theFound
end if
-- Finding or creating the bookmark
set theFound to search "name==" & GroupName & " url==" & GroupURL & " kind:bookmark" in theGroupLinks
if (count of theFound) is 0 then
set theLink to create record with {name:GroupName, URL:GroupURL, type:bookmark} in theGroupLinks
delay 3
else
set theLink to item 1 of theFound
end if
set thePath to path of theLink
-- Creating the recent item in Trickster
tell application "Trickster" to add recent thePath source AppName displayPath GroupLocation callbackURL GroupURL bundleID "com.devon-technologies.think3"
else
display dialog "Choose a Group" buttons {"OK"} default button "OK"
end if
end tell