"Copy MOVE HERE CREATEFOLDER" doesn't create folder in source?

function OnClick(clickData)
{
	var cmd = clickData.func.command;
	cmd.deselect = false;

	var folderName = clickData.func.sourcetab.path.filepart;
	var newName = folderName + ' [Video]';
	cmd.RunCommand('Copy MOVE HERE CREATEFOLDER="' + newName + '"');
	
}

This code works fine, the only problem is it's create the folder in to the destination file display; but it should be create folder in the source file display

Is that happening with 12.25 or the new 12.25.1 beta? The new beta has some changes related to this.

12.25.1 beta

There is no HERE in scripting, you need to set the destination via cmd.SetDestTab:

cmd.SetDestTab(clickData.func.sourcetab);
cmd.RunCommand('Copy MOVE CREATEFOLDER="' + newName + '"');
1 Like

Is there any list of arguments which is work in script?

HERE should work in this situation, and worked OK in 12.25, but it looks like something's broken in the beta with this combination of things.

We'll look into it and get it fixed for the next beta.

1 Like

yes this button was worked fine in 12.25, but when I have update the beta, then the problem was created.

1 Like

We've decided to roll back the change in the 12.25.1 beta for now, so this should work with "HERE" again from 12.25.2 beta and onwards.

(The thing the 12.25.1 change was fixing was not that important, and not worth causing changes like this. We've developed a larger change which so far works in all situations we've tested, but since it's a much larger change we are going to test it internally for a while before putting it into a public release.)