Renaming Script

Explorer ,
Aug 12, 2020

Copy link to clipboard

Copied

Hello!

 

I would like renaming every Compound Path in an Illustrator file via Script.

909352EF-B961-41CF-BCDD-9CDD7BBEC5C4.jpeg

TOPICS
Scripting

Views

76

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

1 Correct Answer

Engaged , Aug 12, 2020
m1b Engaged , Aug 12, 2020
Hi robsmith01, This is one way:var compoundPathItems = app.activeDocument.compoundPathItems; for (var i = 0; i < compoundPathItems.length; i++) { compoundPathItems[i].name = "found you, number " + i; } Just put your own string in place of "found you, number " + i.

Likes

Translate

Translate
Jump to answer Jump to answer
Engaged ,
Aug 12, 2020

Copy link to clipboard

Copied

Hi robsmith01,

 

This is one way:

var compoundPathItems = app.activeDocument.compoundPathItems;

for (var i = 0; i < compoundPathItems.length; i++) {
    compoundPathItems[i].name = "found you, number " + i;
}

 

Just put your own string in place of "found you, number " + i.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more