function OnInit(initData){
initData.name = "Advanced Rename";
var cmd = initData.AddCommand();
cmd.name = "advRename";
cmd.method = "OnAdvRename";
cmd.template="paths/m,isFileList/o";
}
function OnAdvRename(scriptCmdData){
DOpus.ReloadScript(Script.file)
//scriptCmdData.func.command.RunCommand('Rename NOIGNOREEXT'); //works
scriptCmdData.func.command.RunCommand('Rename CASE=upper NOIGNOREEXT'); //does not work, nothing happens, files get deselected
//scriptCmdData.func.command.RunCommand('Rename CASE=upper'); //does not work, nothing happens, files get deselected
}
I am trying to launch the advanced rename dialog with various settings pre enabled, I have only managed to figure out how to enable "ignore extensions".
For example just running ...command.RunCommand('Rename CASE=upper');
with lister files selected just finishes with the files deselected. no error is printed and no dialog opens.
Any help would be greatly appreciated!