6 Replies Latest reply on May 13, 2014 11:27 PM by virender_CTS

    how to delete all text from a specfie text frame?

    virender_CTS Level 1


      hi all,

      i have a indd file and have many pages in it. And i want to delete all text from specified frames.

       

      var myDoc = app.documents.item(0);

      var myFrame1 = myDoc.pageItems.itemByID(111076);

      var myFrame2 = myDoc.pageItems.itemByID(111080);

      var myFrame3 = myDoc.pageItems.itemByID(111079); // etc

       

      //what i did so far i can select specified words but not all and then delete all selected text. its also fine it text can be deleted without selection.

      myFrame1.words[0].select();

       

      thanks

      virender