Indesign droplet

I have this script that creates a proofing template. it has two picture boxes in it. What i want to do is make this a droplet. We would drop two of our pdfs onto the droplet and the twp pdfs would fall into the two picture boxes when template is opened. one pdf will have a 001 at the end of the file name the other 002. I want 001 to go into a specific box, this is where im getting confused

Browser: Safari 534.59.8
Operating System: Mac OS X (10.8)

Can you post what you have so far? The solution might be simple. InDesign can be tricky sometimes…

Model: MacBookPro8,2
Browser: Safari 534.51.22
Operating System: Mac OS X (10.7)

on open pdffiles
set myfile to pdffiles as alias
tell application “Adobe InDesign CS6”
–this is how the script starts–

–this part is the body of the script needed for choosing elements for the template (way to long to copy)–

	tell active document
		place myfile on every rectangle whose name is "leftside"
		place myfile on every rectangle whose name is "rightside"
	end tell

–it’s pretty bleak as far as this part of the script_-

also I want to drop both pdf files on the droplet at the same time

Hi,

I’m not sure if the Indesign part works, but this might be a point to start


on open pdfFiles
	repeat with aFile in pdfFiles
		tell application "System Events" to set fileName to name of aFile
		if (fileName contains "001") then
			set fileOO1 to contents of aFile
		else if (fileName contains "002") then
			set fileOO2 to contents of aFile
		end if
	end repeat
	tell application "Adobe InDesign CS6"
		tell active document
			place fileOO1 on every rectangle whose name is "leftside"
			place fileOO2 on every rectangle whose name is "rightside"
		end tell
	end tell
end open


The website crashed while I was posting my response, so I lost it all. Sorry. But Stefan has given you a pretty good lead.

Good luck!

Model: MacBookPro8,2
Browser: Safari 534.51.22
Operating System: Mac OS X (10.7)

it works. sweet

thank you so much