remove selected text from other Document
- This topic has 0 replies, 1 voice, and was last updated 9 years, 7 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / remove selected text from other Document
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / remove selected text from other Document
Hello,
I have 2 documents open(doc1 and doc2). I´m asking myself if there is a way to select text in document1 and to remove this text from the other document (doc2) ?
I have tried something but it´s not working very well :)
var myDocument = app.activeDocument
var doc1 = myDocument;
var doc2 = app.documents.item(‘A’);
var frame1 = doc1.textFrames.itemByName(“ref”);
var frame2 = doc2.textFrames.itemByName(“Lit”);
frame1.texts.everyItem().select();
find.app.selection[0].frame2.remove();
greetings
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!