utorrent script win7 64bits

Any questions? Need some help?
User avatar
rednoah
The Source
Posts: 17846
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: utorrent script win7 64bits

Post by rednoah » 15 Jan 2013, 15:23

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.
:idea: Please read the FAQ and How to Request Help.

User avatar
rednoah
The Source
Posts: 17846
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: utorrent script win7 64bits

Post by rednoah » 15 Jan 2013, 15:44

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.
:idea: Please read the FAQ and How to Request Help.

Post Reply