Answered
Artboard name to Content
I work with the script and it works very well. But I can only use one Active Artboard at a time. Can someone help me so that all artboard names are automatically written into the content
1000 Thanks
#target illustrator function test(){ if (app.documents.length == 0) { return; } var doc = app.activeDocument; var newText = doc.activeLayer.textFrames.add(); var idx = doc.artboards.getActiveArtboardIndex(); var currentArtboard = doc.artboards[idx]; newText.contents = currentArtboard.name; newText.top = currentArtboard.artboardRect[1] + 10; newText.left = currentArtboard.artboardRect[0] + 10; newText.textRange.characterAttributes.size = 20; }; test();
