We've expanded our news coverage and improved our search! Visit news.oreilly.com for the latest or search for all things across O'Reilly!
advertisement

Article:
  Automate Your Favorite Photoshop Routines
Subject:   Art Layer object
Date:   2006-11-22 16:32:43
From:   bettatronic
Try to use the ArtLayer photoshop object. It'll solve the problem pretty easy. For more information about the object (methods,properties) etc use JavaScriptReference.pdf guide provided by Photoshop.


Some code hint:

for (var i = 0; i < app.activeDocument.layers.length; i++) {
if (app.activeDocumentdocuments(0).artLayer(i).LayerKind==NORMAL){
//apply filter here
}
}