Only Select RGB Files?
I am creating a script to only select RGB Files. I am having problems with the Array because affter I am done its empty.
I was hoping to make a list of RGB files and then select them, But I have not been able to create a list yet.
#target bridge
app.document.deselectAll();
var thumbs = app.document.getSelection("jpg");
for(var a in thumbs){
var RGBlist=[];
var poop=app.document.select(app.document.thumbnail.children) ;
var isRGB=app.document.selections[0].core.quickMetadata.colorMode;
var picSelect=app.document.selections[0];
if(isRGB==3){
RGBlist.push(picSelect.name);
}
var noSelect=app.document.deselect(app.document.thumbnail.children);
alert(RGBlist);
}
Any Ideas?
