Add this to your toolbar (See Button .dcf Files in How to use buttons and scripts from this forum):
- Create Covers.dcf (1.1 KB)
Go to the folder where you want to create the Covers folder:
Click the button:
Script code for reference:
function OnClick(clickData)
{
var cmd = clickData.func.command;
cmd.ClearFiles();
cmd.deselect = false;
var folderName = clickData.func.sourcetab.path.filepart;
var matches = folderName.match(/^[^.]+/);
DOpus.Output(matches.length);
if (matches.length != 1) { return; }
var newName = matches[0] + ' Covers';
cmd.RunCommand('CreateFolder NAME="' + newName + '"');
}