2 Replies Latest reply on Nov 7, 2016 11:23 PM by azisher

    Copy Artboads name to an other Document

    azisher

      Hi, I am an icon designer, I've designed 100 icons with 2 different style. First ai file with monochrome version (contains 100 artboards) and second ai file with colored version (also contains 100 artboards).

      I've renamed all artboards in First ai file for easy export purpose. Then, I manually rename the Second ai file like I did on First ai file. it is very time consuming.

      Is there any method/script to copy artboards name from first ai to an other ai file?

       

      Thanks,

      Azis

        • 1. Re: Copy Artboads name to an other Document
          CarlosCanto Adobe Community Professional & MVP

          make sure both files have the same number of artboards, source File must be active, both files must be open.

           

          // copy artboard names from Doc A to Doc B
          // https://forums.adobe.com/thread/2233444
          
          
          function main () {
              var sourceDoc = app.activeDocument; // the document to copy artboard names from
          
          
              var sourceAb, destAb;
              var names = [];
             
              for (var a=0; a<sourceDoc.artboards.length; a++) {
                  names[a] = sourceDoc.artboards[a].name;
              }
          
          
              var destDoc = app.documents[1]; // the document to copy artboard names to
              destDoc.activate();
              for (var a=0; a<destDoc.artboards.length; a++) {
                  destAb = destDoc.artboards[a];
                  destAb.name = names[a];
              }
          }
          main ();
          
          1 person found this helpful
          • 2. Re: Copy Artboads name to an other Document
            azisher Level 1

            Thank you Carlos. You saved my life.