You can't redirect the console output when u don't even know where it's gonna go yet.
By custom rename action I mean:
1. Copy A to B
2. Create new empty text file in parent folder of B
You can log file names A/B to an extra file if u want but you cannot do that with the console log.
utorrent script win7 64bits
Re: utorrent script win7 64bits
This is a working example of what I mean:
I'm sure you can make something that works for you based on that.
Code: Select all
rename(
file: args.getFiles(),
format: '''E:/OUTPUT/{n}/Season {s}/{episode}''',
action: { from, to ->
_renameFunction('COPY').rename(from, to)
def logFile = new File(to.dir.dir, 'history.txt')
logFile << "Renamed ${from.name} to ${to.name}"
}
)