That was the code for the Get Address tab. The Get Name tab reads:
tell application id "DNtp"
if exists (content record of current tab of window 1) then
-- current open item
return name of (content record of current tab of window 1)
end if
if class of window 1 is equal to viewer window then
set selected_items to selection of window 1
if (count of selected_items) = 1 then
-- current selected item
return name of item 1 in selected_items
end if
end if
-- selected group
return name of root of window 1
end tell
Could that be simplified in similar fashion?
Hookmark and DT3 do work very well together.
Thanks for posting @LucB.