Highlighted

Renaming Script

Community Beginner ,
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

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.

Topics

Scripting

Views

42

Likes

Translate

Translate

Report

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

Renaming Script

Community Beginner ,
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

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.

Topics

Scripting

Views

43

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Contributor ,
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
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...