Scripting Languages, and numbering artboards


hello fellow scripters,

 

first question:

i know scripts support java, , remember supporting basic other languages can script in?  can have bulk of script in java have parts in sql?

 

second question:

i know how make script write text layer, , position using (x,y) location if have multiple art boards? need following;

 

check total number of art boards //some files have 2 others have 3 , few have 4.

take art boards number, not name , print in lower left (1,1) bottom.

 

i need run batch on folder has sub folders of sub folders.  .ai or .pdf files , there 2k files.  i've got 2-3 months wanted write script can have done, way can run on chunks of files @ time.

 

i've never made batch script, , i've never had write script changes between art boards.  need know how tell illustrator select art board, can create loop cycling through art boards , can tell save how tell grab next file in folder , repeat?

check file system section in tools guide.

 

first reference folder

 

 var mydesk = folder.desktop;  

 

then files in folder

 

 var files = mydesk.getfiles (/\.(ai|pdf)$/i); // returns array of files  

 

then loop thru files , thing

 

 loop {     var file = files[i];  


More discussions in Illustrator Scripting


adobe

Comments

Popular posts from this blog

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!