You'd just open
cmd and then run the script? What have you been doing till now?? And just in case your editing with
editor, then it's probably setting some BOM at the beginning of the file that'll make the script unusable.
And copyTo(format.music) what do you expect? That's just a template, not even a path.
This definitely works:
Code: Select all
(input - getRenameLog().keySet()).findAll{ it.isAudio() }*.copyTo('D:/this is/where my file goes/')
Just in case nothing gets renamed (in which the script aborts early) you can add this line before code:
Code: Select all
// skip notifications if nothing was renamed anyway
if (getRenameLog().isEmpty()) {
return
}
I've tested this and it works 100% so any other issue are on your end for you to figure out. And always keep the cmdline open so you can see the errors! Otherwise you won't be able to.
