making droplet problem

Hi All,

I have developed a program for InDesign. But I am getting problem in making droplet of it:

see the code below


on open myDocument
	tell application "InDesign CS"
		open myDocument
		search for "Accelerated Math" replacing with "Matemáticas aceleradas" with case sensitive and whole word
		search for "Activity" replacing with "Actividad" with case sensitive and whole word
		close myDocument saving yes
	end tell
end open


Please correct me.

Thanks
Rajeev

Just save it as an application - the on open handler enables it as a droplet.