Copy link to clipboard
Copied
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.
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
Copy link to clipboard
Copied
For starters you should loop backwards so you insertionPoints don't have their index messed up.
Copy link to clipboard
Copied
Thank you for your comments,
Can you give that insertion S01 to S25 likewise scripts.
It will useful for me.
Thanks in Advance
Sabari
Find more inspiration, events, and resources on the new Adobe Community
Explore Now