Page 2 of 2

Re: utorrent script win7 64bits

Posted: 15 Jan 2013, 15:23
by rednoah
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.

Re: utorrent script win7 64bits

Posted: 15 Jan 2013, 15:44
by rednoah
This is a working example of what I mean:

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}"
   }
)
I'm sure you can make something that works for you based on that.