Copy Artboads name to an other Document


hi, icon designer, i've designed 100 icons 2 different style. first ai file monochrome version (contains 100 artboards) , second ai file colored version (also contains 100 artboards).

i've renamed artboards in first ai file easy export purpose. then, manually rename second ai file did on first ai file. time consuming.

is there method/script copy artboards name first ai other ai file?

 

thanks,

azis

make sure both files have same number of artboards, source file must active, both files must open.

 

// copy artboard names doc doc b // https://forums.adobe.com/thread/2233444   function main () {     var sourcedoc = app.activedocument; // document copy artboard names       var sourceab, destab;     var names = [];         (var a=0; a<sourcedoc.artboards.length; a++) {         names[a] = sourcedoc.artboards[a].name;     }       var destdoc = app.documents[1]; // document copy artboard names     destdoc.activate();     (var a=0; a<destdoc.artboards.length; a++) {         destab = destdoc.artboards[a];         destab.name = names[a];     } } main (); 


More discussions in Illustrator Scripting


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working