ScriptCommand does not get source/desttab correctly

A ScriptCommand does not get source/desttab correctly, if used in a drag'n drop operation (regular use on a button or CLI works).

If I drag'n drop a file in a dual lister from source to dest, the path objects of data.func.sourcetab and data.func.desttab
are both set to the destination, while I expect sourcetab to be the source.

If I drag'n drop a file from source to its parent folder by using the bread crumps bar, the path objects of data.func.sourcetab and data.func.desttab
are both undefined, while one would expect at least sourcetab.path to be a valid object (but having no destination is also no good of course o).

Find a quick ScriptCommand to be put into a drag'n drop operation of the "All files and folders" filetype, to see what I mean:

/////////////////////////////////////////////////////////////////////////////// function OnInit(data){ data.name = "Command.General: MyDraggedCommand"; data.default_enable = true; var cmd = data.AddCommand(); cmd.name = "MyDraggedCommand"; cmd.method = "Command_MyDraggedCommand"; } /////////////////////////////////////////////////////////////////////////////// function Command_MyDraggedCommand(data) { DOpus.Output("data.func.sourcetab: " +data.func.sourcetab.path); DOpus.Output("data.func.desttab: " +data.func.desttab.path); }
Thank you! o)

We'll fix this in the next update, but bear in mind that a drop may come from outside of Opus in which case there is no "source tab".

Hi Jon, I'm going to bear! o)
Thanks for looking at this, it is the missing piece for "LogCommand" to get all required information if used in drag'n drop operations.