Place a image in the position I want

Hello everyone, I’m new to this forum and I need your help!!

I have this


tell application "InDesign CS"
	tell document 1
		tell page 1
			place "Maleni HD:Users:maleni:Desktop:epeeses:427-11.eps"
		end tell
	end tell
end tell

I know how to make a rectangle or frame text in a coordinates {x,y} but I don’t know how to place an image in the position I want. :frowning:
Please, help me

Thanks for all

Hi,
try this!

set thefile to choose file
tell application "InDesign CS"
	activate
	tell document 1
		set placed_file to place thefile on page 1
		set image_box to parent of placed_file
		move image_box to {"30.0", "30.0"}
	end tell
end tell

Thanks,
Nik

Thanks blend3… Its something like that… but…
I give you more information


tell application "InDesign CS"
	tell document 1
--the document is done
		tell page 1
			--In milimeters
			make text frame with properties {geometric bounds:{10, 9, 145, 54}}
			make text frame with properties {geometric bounds:{10, 58, 145, 103}}
			make text frame with properties {geometric bounds:{10, 107, 145, 152}}
			make text frame with properties {geometric bounds:{10, 156, 145, 201}}
			place "Maleni HD:Users:maleni:427-27.eps"--where?
			place "Maleni HD:Users:maleni:428-27.eps"--where?
			--Page 2, the same.. Page 3... Pag n
		end tell
	end tell
end tell

Every page have text frames and eps… I know where the text frame and eps go…

Sorry, I’m not entirely sure what you’re trying to do, can you explain it again?
Looking at your script, if you’re trying to create a 6 page document each containing a text frames and images all in the same position for each page, would you not be better to create a Master page in Indesign and then create 6 pages based on that Master?
Thanks,
Nik

Sorry!! I’ll try to explain it


tell application "InDesign CS"
	tell document 1
		tell page 1
			--In milimeters
			make text frame with properties {geometric bounds:{10, 9, 145, 54}}
			make text frame with properties {geometric bounds:{10, 58, 145, 103}}
			make text frame with properties {geometric bounds:{10, 107, 145, 152}}
			make text frame with properties {geometric bounds:{10, 156, 145, 201}}
			place "Maleni HD:Users:maleni:427-27.eps" --Where?
			place "Maleni HD:Users:maleni:428-27.eps" --Where?
			--Page 2, the same.. Page 3... Pag n
		end tell
tell page 2
	make text frame with properties {geometric bounds:{10, 9, 100, 54}}
			make text frame with properties {geometric bounds:{10, 58, 100, 103}}
			make text frame with properties {geometric bounds:{10, 107, 145, 152}}
			place "Maleni HD:Users:maleni:425-27.eps"
			place "Maleni HD:Users:maleni:Pepe-27.eps"
place "Maleni HD:Users:maleni:4pe2-27.eps"
			Page 3... Pag n
		end tell
	end tell
end tell

Every page is diferent with diferent positions, but I know the positions. Only I want to place the eps where I want {10, 9} or {10, 45}

I don’t know if the size of the eps is necessary but it is so I have it

Something like this?

tell application "InDesign CS"
	activate
	tell document 1
		tell page 1
			--In milimeters
			make text frame with properties {geometric bounds:{10, 9, 145, 54}}
			make text frame with properties {geometric bounds:{10, 58, 145, 103}}
			make text frame with properties {geometric bounds:{10, 107, 145, 152}}
			make text frame with properties {geometric bounds:{10, 156, 145, 201}}
			set image1 to place "Maleni HD:Users:maleni:427-27.eps" --Where?
			set image2 to place "Maleni HD:Users:maleni:428-27.eps" --Where?
			set image_box1 to parent of image1
			set image_box2 to parent of image2
			move image_box1 to {10, 9}
			move image_box2 to {10, 45}
			--Page 2, the same.. Page 3... Pag n
		end tell
		tell page 2
			make text frame with properties {geometric bounds:{10, 9, 100, 54}}
			make text frame with properties {geometric bounds:{10, 58, 100, 103}}
			make text frame with properties {geometric bounds:{10, 107, 145, 152}}
			--place "Maleni HD:Users:maleni:425-27.eps"
			--place "Maleni HD:Users:maleni:Pepe-27.eps"
			--place "Maleni HD:Users:maleni:4pe2-27.eps"
			--Page 3... Pag n
		end tell
	end tell
end tell

Thanks,
Nik

Thank you very much… two solutions are excellent for me!! :smiley: