2 Replies Latest reply on May 23, 2013 11:40 PM by Beliakov

    Why text doesn't moves to new location? [CS6-jsx}

    Beliakov

      I want to move paras under selection to new frame. I have:

      var mText = app.selection[0].texts.itemByRange(app.selection[0].paragraphs[0].texts[0], app.selection[0].paragraphs[-1].texts[0]);
      var mFrame = app.activeWindow.activePage.textFrames.add();
      mProgn.geometricBounds = Array(94.5, -20, 92+10, -20+100);
      
      for (i=0; i<mText.paragraphs.length; i++){
          mText.paragraphs[i].move(LocationOptions.before, mFrame.parentStory.paragraphs[-1]);   ///'invalid parametr 'reference' or method 'move'....
      }
      

      Why?

       

      Thanks.