function OnClick(clickData)
{
var cmd = clickData.func.command;
var tab = clickData.func.sourcetab;
if (!tab.selected.count) return
cmd.logchanges = true;
cmd.RunCommand('COPY MOVE TO=D:\\');
//DOpus.Output(cmd.Results.result) // 1
DOpus.Output(cmd.Results.changes.action) // empty
}
cmd.Results.changes
is a collection of FileChange
objects, not a single object. You're trying to read a nonexistent action
property on the collection rather than one of the individual changes inside it.
https://docs.dopus.com/doku.php?id=reference:scripting_reference:scripting_objects:results
1 Like
Oops!
DOpus.Output(cmd.Results.changes[0].action)