Skip navigation
Currently Being Moderated

[AS][CS3] duplicate page items in a specific position on another doc

Apr 28, 2011 1:12 AM

Hello,

 

I need to copy or duplicate page items of the active page of doc 1 in a specific position of the active page of doc 2.

 

I can duplicate the page items of doc 1 into the doc 2 (with the code below) but can't find a way to duplicate them in a specific position: they are always duplicated in the same position on the active page of doc 2.

 

The current working code (simplified) is:

tell application "Adobe InDesign CS3"

tell document 1

tell layout window 1

set pageitemlist to every page item of active page

end tell

end tell

duplicate pageitemlist to the active page of layout window 1 of document 2

end tell

 

 

Thanks for your help!

 


 
Replies
  • Currently Being Moderated
    Apr 28, 2011 4:06 PM   in reply to vincentp62

    -- This works in CS4:

     

     

    tell application "Adobe InDesign CS4"

    tell document 1

    tell page 2

    set d to duplicate page item "textframe1" -- the text frame labeled "textframe1"

    -- FYI, d has a class of list:

    -- "text frame id 328 of page id 237 of spread id 232 of document "Untitled-2" of application "Adobe InDesign CS4""

    end tell

     

    move d to page 4 -- moves to 0,0 on pg4

    end tell

    end tell

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points