2 Replies Latest reply on Mar 15, 2008 1:29 AM by (Andreas_Krüger)

    Move Textframe to next page

      Hi,

      I'm trying to move a textframe to the next page by javascript, but it doesn't work.
      I'm affraid I don't understand how the function move() works in javascript.
      Can someone help me to get working this?

      My code looks like this:

      newFrame.move(Seite.documentOffset,Seite.documentOffset-1);
        • 1. Re: Move Textframe to next page
          Peter Kahrel Adobe Community Professional & MVP
          Andreas,

          move() takes either (a layer, page or spread) or an array of values as parameter. To move a frame to the next page, you need something like this:

          current_page = newFrame.parent.documentOffset;
          newFrame.move (app.activeDocument.pages[current_page+1]);

          Peter
          • 2. Re: Move Textframe to next page
            Level 1
            Peter,

            thank you. This works fine. :-)

            Am 13.03.2008 um 15:00 schrieb Peter Kahrel:

            A new message was posted by Peter Kahrel in

            InDesign Scripting --
            Move Textframe to next page

            Andreas,

            move() takes either (a layer, page or spread) or an array of values as
            parameter. To move a frame to the next page, you need something like
            this:

            current_page = newFrame.parent.documentOffset;
            newFrame.move (app.activeDocument.pages[current_page+1]);

            Peter

            View/reply at Move Textframe to next page
            Replies by email are OK.
            Use the unsubscribe form to cancel your email subscription.