Javascript - Controlling Photoshop Externally -
i have basic javascript works within action... want control photoshop outside application (in bigger script/project).
basic code
var numberofpaths = activedocument.pathitems; if (numberofpaths.length < 1) { 'do here - e.g. copy file folder' } else { 'do else e.g. log , nothing it' }
i trying open image (one-by-one), , check see if has path, depending on if/else statement, it.
i've searched around , haven't found meets trying do. not familiar javascript, more python. i've tried below, targeting photoshop similar how in applescript. though i'm @ loss.
... photoshop = application('adobe photoshop cc 2014'); var docref = photoshop.open ('path/to/file'); var numberofpaths = photoshop.activedocument.pathitems; ...
any appreciated. cheers!
Comments
Post a Comment