place 2 page pdf into Indesign doc

Hi

I am looking to place a two page pdf into indesign cs2 onto 1 page, I can either get page 1 or page 2 of my pdf to be placed, but not both at the same time
I have found this thread to be very informative, but cannot figure how to get the 2 pages of my pdf to be placed at he same time.
http://bbs.applescript.net/viewtopic.php?id=19907

so far I have this

tell me to set thePDF to choose file with prompt “Choose a pdf” of type {"PDF "} without invisibles
display dialog "How many pages to import: " default answer 1
set PDFpages to text returned of the result
set pageCount to “1”
tell application “Adobe InDesign CS2”
activate
set newDoc to make document
set horizontal measurement units of view preferences of newDoc to millimeters
set vertical measurement units of view preferences of newDoc to millimeters
set page width of document preferences of newDoc to “311 mm”
set page height of document preferences of newDoc to “484 mm”
set pages per document of document preferences of newDoc to (pageCount as number)
set page orientation of document preferences of newDoc to portrait
set page number of PDF place preferences to PDFpages as number
place thePDF on page 1 of newDoc

could I get some advice on this please?

cheers
Budgie

I don’t think you can place them both at the same time - but you can accomplish this with a simple repeat loop

repeat with i from 1 to PDFpages
		set page number of PDF place preferences to i as number
		place thePDF on page 1 of newDoc
	end repeat

Hope that helps

Hi ChrisAdmin

ohhh yes that helps indeed, worked like a charm, been googleing every where to get a solution, yes you are correct in saying that you cannot place them at the same time, this has just been confirmed by Shane Stanley from the Adobe Indesign forum.

much appreciated

Budgie