remove selected text from other Document

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / remove selected text from other Document

Viewing 0 reply threads
  • Author
    Posts
    • #70550
      mario2004
      Member

      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

Viewing 0 reply threads
  • You must be logged in to reply to this topic.
>