Code: Select allStdlib.batch(src, act, actset, opts, mask, recurse);
This is an alternative interface to Batch (instead of app.batch)
It has the ability to:
specify text fragments as file name componentsrecurse into subfoldersuse a file mask/regexp to specify files
args:
src - a File, Folder, or an Array of Files and Foldersact - the Action nameactset - the ActionSet nameopts - BatchOptions with support for text file naming componentsmask - either a simple mask ("*.jpg"), a function mask (see Folder.getFiles()) or a Regular Expression (/\.jpe?g$/i)recurse - if true, recurse into subdirectories
I've attached the test code I used in developing this.
If this is noticably slow, there are a couple of optimizations that I can go back in and make.
Enjoy!
Stdlib.batch
Stdlib.batch
Minor bug. Line 146 needs to be changed from:
Code: Select all Stdlib.batch.map[FileNamingType.DOCUMENTNAMEMIXED] = sTID("Nm ");
to
Code: Select allStdlib.batch.map[FileNamingType.DOCUMENTNAMEMIXED] = cTID("Nm ");
Code: Select all Stdlib.batch.map[FileNamingType.DOCUMENTNAMEMIXED] = sTID("Nm ");
to
Code: Select allStdlib.batch.map[FileNamingType.DOCUMENTNAMEMIXED] = cTID("Nm ");