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

Participant ,
Aug 01, 2022 Aug 01, 2022

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

 

TOPICS
How to , Scripting

Views

50

Likes

Translate

Translate

Report

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

Likes

Translate

Translate
Adobe Employee ,
Aug 01, 2022 Aug 01, 2022

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

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