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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -