How to AddFile
from Destination Tabs Selected files?
I want to AddFile from the destination tab. the file I want to add is already selected by this command:
cmd.RunCommand('Select (coverart|folder).jpg');
I have found a temporary solution for that job, but I believe there is a better way for do the same job.
var FirstFile2 = clickData.func.desttab.selected_files(0);
var FirstFile3 = clickData.func.desttab.selected_files(1);
cmd.AddFile(FirstFile2);
cmd.AddFile(FirstFile3);