Copy link to clipboard
Copied
is that possible without me manually doing each one? i have like 50 so i'd prefer not to...
so, i have my artboards, all pretty and done. i named each dartboard so when i export them as jpegs they are magically named correctly... now, i would love to set it up so that the name of the artboard is also the title (or header) of the page so that everything is labeled all pretty... can i do that?
Copy link to clipboard
Copied
You've posted in the Lounge (which is where you can "connect with your peers" from across all of Adobe's products for conversations that don't directly relate to help and support). Tell us what software you're using and we can get a moderator to move this thread to a product-specific support forum.
Copy link to clipboard
Copied
oops! sorry... I'm using illustrator cc
Thank you
Copy link to clipboard
Copied
It's moved.
Copy link to clipboard
Copied
Check in the Illustrator Scripting Forum. There is a link on the Overview tab.
Copy link to clipboard
Copied
It's moved again.
Copy link to clipboard
Copied
Hello, try this!
#target illustrator
function test(){
var doc = app.activeDocument, thisItem;
for(var i=0; i<doc.artboards.length; i++){
doc.artboards.setActiveArtboardIndex(i);
doc.selectObjectsOnActiveArtboard();
for(var j=0; j<doc.selection.length; j++){
thisItem = doc.selection
if(thisItem.typename == "TextFrame" && thisItem.name == "header"){
thisItem.contents = doc.artboards.name;
}
};
};
doc.selection = null;
};
test();