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

add bookmark automation in a table (EX:S01-first row to S25-Last row)

Community Beginner ,
Jun 02, 2019 Jun 02, 2019

Hi Everyone,

I have just tried to apply automation using bookmark in table first to last row using EX: S0(Start)-S(25)(End). but its not workout.

I need to insert first word before each row.

ie:First row-S01,Second row-S02 like wise each row script will put automatically.

Please anyone give solution.

http://new.JPGnew2.JPG

I have tried my script, but script not working.

var doc = app.activeDocument; 

myTF=myDoc.pages.item(0).textFrames.();

var bookmarksPanel = app.panels.itemByName("$ID/Bookmark_Tree"); 

bookmarksPanel.visible = false; 

for(i=S0;i<=S25;i++){

myTF.insertionPoints.item(0).contents=i+S0;

}

alert("completed")

Thanks Inadvance

Sabari

TOPICS
Scripting
445
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
Mentor ,
Jun 02, 2019 Jun 02, 2019

For starters you should loop backwards so you insertionPoints don't have their index messed up.

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
Community Beginner ,
Jun 04, 2019 Jun 04, 2019
LATEST

Thank you for your comments,

Can you give that insertion S01 to S25 likewise scripts.

It will useful for me.

Thanks in Advance

Sabari

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