What are the intended conditions, if any, under which requesting the parent of a record returns one of the assigned tags instead of the actual parent group.
For example in the following scenario:
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
tell application id "DNtp"
set theSelections to the selection
if theSelections is {} then
error localized string "Please select at least one document, then try again."
end if
repeat with theRecord in theSelections
set s to parent of theRecord
set groupName to name of the first item of parent of theRecord
-- etc., etc.
end repeat
end tell
with the record depicted below selected (but not with any of the others), the groupName returns the name of one of the record’s tags, not the parent group name 36.12 SVS. There are no duplicates or replicants. On closer inspection, the parent of that record returns a list of two items. So I suppose the real question is - under what conditions does a record have two (or more) parents?
DTP 3.8.6 | macOS 11.6 | Intel