How can I determine in my_script... what files/dirs were actually affected by RENAME?
My idea for now is using Func.Command.Vars in RENAME script to remember changes (is it even available in rename script?), but maybe there is some more direct way to do this?
var command = "Rename .. "; //your command here
data.func.command.RunCommand(command);
var itemsEnum = new Enumerator(data.func.command.files);
for(;!itemsEnum.atEnd();) {
var item = itemsEnum.item(); itemsEnum.moveNext();
var status = "successful"
if (item.failed) {
status = "failure";
//command failed on item
}
}
This seems to work well if you act upon selected files (ie. command has filled items). After all I am going to remember changed files in global variable, as I have currently problems with constructing data in command object because of failing ReadDir in python.