scripting Preflight in CS4

I’m trying to make a script that will install predefined Preflight options in In Design. This is my script till now :

tell application "Adobe InDesign CS4"
	try
		make new preflight profile with properties {name:"TEST"}
	end try
	tell preflight profile "TEST"
		set description to "Preflight !!" 
		tell preflight rule instance "ADBE_MissingModifiedGraphics"
			set flag to return as error
		end tell
	end tell
end tell

This gives the error : Adobe InDesign CS4 got an error: Preflight profile rule does not exist in the profile

Is there a way to avoid that? If i click on a preflight option in In Design it works fine after that. (But offcourse i want that automaticly done)

Jan Geerling