Skip to main content
Inspiring
August 1, 2022
Answered

Remove Linked image and insert text in that place in InDesign document using Javascript

  • August 1, 2022
  • 1 reply
  • 293 views

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

 

This topic has been closed for replies.
Correct answer Rishabh_Tiwari

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

1 reply

Rishabh_Tiwari
Community Manager
Rishabh_TiwariCommunity ManagerCorrect answer
Community Manager
August 1, 2022

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

Inspiring
August 1, 2022

yes, link directed me to the right answer. Thanks @Rishabh_Tiwari !

Rishabh_Tiwari
Community Manager
Community Manager
August 1, 2022

Glad to hear that! Feel free to reach out if you need any further assistance.