ASS, drag types and InDesign CS. ARGH!!!!

PLEASE. HELP. PLEASE.

Now that that is out of the way. Here’s the scenario:
I wrote an applescript that automates some things in indesign.
I wanted to add more functionality so I decided to rewrite it using Applescript Studio. As a droplet the script works fine. However, as an application, where I have the user drop the files on a box on the window it does not work. I get an error dialog saying the “/etc./etc./blah.pdf” does not understand the place command.
So: I have the preferred drag type set as {“file name”}. What the heck is going on? Why does the droplet pass the path to indesign, but a drop box not?
I did a search and came up with this: http://bbs.applescript.net/viewtopic.php?id=11036
I tried that and it crashes InDesign CS.

any help appreciated,
aaron

:confused: I give up. The following works in InDesign CS2. Any idea how I can get it to work in InDesign CS?


on clicked theObject
	if the name of theObject is "colorpass" then
		CSFormat()  --this handler just sets up page size, etc..
		set placedPDF to item 1 of thePaths  -- thePaths is the variable holding the files being placed in InDesign.
		set PPDF to POSIX file placedPDF
		tell application "InDesign CS"
			set myPage to page 1 of active document
			tell myPage
				set myPlacedPDF to place PPDF
				set myItem to page item 1
			end tell
		end tell
	end if
	
	if the name of theObject is "XP" then
		XPFormat()
	end if
end clicked



thanks.