Copy link to clipboard
Copied
How to remove and add text in the position of linked image or rectangle object in the indesign document!
I am trying like this...
var myLinks=app.activeDocument.links;
var linkedname = "<<"+myLinks[0].name+">>";
myLinks[0].parent.parent.select();
app.selection[0].remove();
neee.insertionPoints[0];
app.insertionPoints[0] = linkedname;
//how to add insertion point and insert text to that position
1 Correct answer
Hi @Karthik SG ,
Thanks for reaching out. I am not a scripting expert however I found a similar discussion on the community which you can refer to here https://community.adobe.com/t5/indesign-discussions/script-to-replace-images-with-their-names/m-p/11256456#M192998
If that's not what you're looking for, I am leaving this discussion open for expert suggestions.
Regards
Rishabh
Copy link to clipboard
Copied
Hi @Karthik SG ,
Thanks for reaching out. I am not a scripting expert however I found a similar discussion on the community which you can refer to here https://community.adobe.com/t5/indesign-discussions/script-to-replace-images-with-their-names/m-p/11...
If that's not what you're looking for, I am leaving this discussion open for expert suggestions.
Regards
Rishabh
Copy link to clipboard
Copied
yes, link directed me to the right answer. Thanks @Rishabh_Tiwari !
Copy link to clipboard
Copied
Glad to hear that! Feel free to reach out if you need any further assistance.

