filebot

Groovy Pad / Watch Folder / AMC

Aug 31st, 2014
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.28 KB | None | 0 0
  1. def output = '/Users/reinhard/Downloads/output/'
  2. def input = '/Users/reinhard/Downloads/complete/'
  3.  
  4. (input as File).watchFolder { files ->
  5.     executeScript('dev:amc', ['--action', 'duplicate', '-non-strict', '--output', output], [minFileSize:0], files)
  6. }
  7.  
  8. sleep Integer.MAX_VALUE
Add Comment
Please, Sign In to add comment