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

Renaming Script

Guest
Aug 12, 2020 Aug 12, 2020

Hello!

 

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

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

TOPICS
Scripting
336
Translate
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.

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

Translate
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