Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Move Textframe to next page

New Here ,
Mar 13, 2008 Mar 13, 2008
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);
TOPICS
Scripting
600
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 13, 2008 Mar 13, 2008
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 15, 2008 Mar 15, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines