I am trying to perform in applescript the equivalent of “Data > group items” in the menu.
on run
tell application id "DNtp"
set theRecords to selected records
set firstRecord to first item of theRecords
set theGroup to create record with {name:(get name of firstRecord), type:group} in current group
move record theRecords in theGroup
end tell
end run
I get an error : “DEVONthink 3 got an error: Can’t make theRecords of parent id 1390527 of database id 5 into type reference.”
To me it seems that the move command is identified as move from the Std Suite and not move from the DT suite. I can’t find a way to specify which move command I want to use.
Any idea? thx.