scripting help needed!!


i have school photography shoot coming each child have 2 shots need saved folder there 200 children script first 2files in folder in sequence saved or moved folder 1 {or choice of folder name} next 2 shots in sequence next folder etc

the folder ideally name of first image mean rename images in lightroom barcode type system easy finding of images later

 

if can created lightroom better dont mind batch processing in photoshop

any ideas?

does (it messes date/s, though)?

// michael l hale;

// 2014, use @ own risk;

var thefolder = folder.selectdialog ("select folder");

if (thefolder) {

var thefiles = thefolder.getfiles(/\.(jpg|tif|eps|psd|png)$/i);

thefiles.sort();

var thenumber = thefiles.length;

if (string(thenumber/2).indexof(".") == -1) {

for (var m = thenumber/2 - 1; m >= 0; m--) {

var theimage = thefiles[m*2];

var theimage2 = thefiles[m*2+1];

var basename = theimage.name.match(/(.*)\.[^\.]+$/)[1];

new folder(thefolder.fullname+"/"+basename).create();

var success = theimage.copy(thefolder.fullname+"/"+basename+"/"+theimage.name);

if (success == true) {theimage.remove()};

var success = theimage2.copy(thefolder.fullname+"/"+basename+"/"+theimage2.name);

if (success == true) {theimage2.remove()};

}

};

};



More discussions in Photoshop Scripting


adobe

Comments

Popular posts from this blog

Some mp4 files not displaying correctly (CS6)

Thread: Samba is not authenticating with LDAP