How do I add a subfolder to Cpath?


i have code , want add subfolder code output files go in subfolder named pdf. how can this??

 

/* extract pages folder */

 

 

    var re = /.*\/|\.pdf$/ig;

 

 

    var filename = this.path.replace(re,"");

 

 

 

    {

        ( var = 0;  < this.numpages; i++ )

        this.extractpages

         ({

            nstart: i,

            cpath : number(filename) + (i+1) + ".pdf"

        });

    };

update value set cpath. note directory separator character / not \ in case e.g. directory/file.pdf. sure create folder first, acrobat won't that.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop