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

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

Engaged ,
Aug 01, 2022 Aug 01, 2022

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

 

TOPICS
How to , Scripting
207
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

correct answers 1 Correct answer

Adobe Employee , Aug 01, 2022 Aug 01, 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

Translate
Adobe Employee ,
Aug 01, 2022 Aug 01, 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/11... 

 

If that's not what you're looking for, I am leaving this discussion open for expert suggestions.

 

Regards

Rishabh

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
Engaged ,
Aug 01, 2022 Aug 01, 2022

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

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
Adobe Employee ,
Aug 01, 2022 Aug 01, 2022
LATEST

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

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