• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Renaming Script

Explorer ,
Aug 12, 2020 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

235

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
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 12, 2020 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.

Votes

Translate

Translate
Adobe
Community Expert ,
Aug 12, 2020 Aug 12, 2020

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines