Skip to main content
Known Participant
June 2, 2019
Question

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

  • June 2, 2019
  • 1 reply
  • 446 views

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://

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

This topic has been closed for replies.

1 reply

Trevor:
Legend
June 2, 2019

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

Known Participant
June 4, 2019

Thank you for your comments,

Can you give that insertion S01 to S25 likewise scripts.

It will useful for me.

Thanks in Advance

Sabari