2 Replies Latest reply on Nov 20, 2014 4:34 PM by ebscoresearch2

    How to move grouped text frames as a group?

    ebscoresearch2

      I have a threaded text frame with two text frames total in the thread. I am trying to move only the second half of the threaded text frame from the second-to-last page to the last page of my document. I have been able to successfully do this using this code:

       

      var myDocument = app.activeDocument;

      var myEndFrame = myDocument.pages[myDocument.pages.length-2].textFrames[1].endTextFrame;

      myEndFrame.move(myDocument.pages[myDocument.pages.length-1]);

       

      However, this code does not work when the second half of my threaded text frame has another text box grouped inside of it (such as a pull quote). In that case, the script will only move the threaded text frame part and not the other text box grouped with it. I need the two text boxes to remain grouped, and I would like to move the entire group together to the last page of my document. I have tried everything I can think of to get this to work and have been unsuccessful. (For example, I tried to get my code to move the entire group, but I can't get it to recognize the grouped text boxes as a group.) It could be that I'm missing something obvious. Any help would be greatly appreciated.