// filebot -script fn:extract /* * Auto-extract all zip and rar archives. */ args.getFiles{ it.isArchive() }.each { def output = extract(file:it) output.each{ println "Extracted: " + it.path } }