javascript - Split a folder before starting script -


if have folders, 300+ images , 40 or less images.

is there javascript (pure javascript using photoshop) can take folder "original" if there more 50 images in folder creates folder called "split1" , cuts 50 images in there. looks in "original" again , if there still 50+ images creates folder called "split2" , carries on until folder "original" has less 50 or 50 images inside.

tried hunting unable find anything.

many thanks, :)

absolutely. have @ documentation file system access section of javascript tools guide. can use folder.selectdialog prompt user you'd run script, , there documentation on folder , file objects in extendscript toolkit should rest of way.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -