Illustrator CS5 dialogs

Has something changed in CS5 with dialog settings? To keep dialogs from showing during a script, I used to use “showing dialogs never” now it doesn’t work. What is everyone else using now?

You may try code as follows:


tell application "Adobe Illustrator CS5"
               set user interaction level of script preferences to never interact
end tell

Best regards from sunny Berlin,

Martin

Thanks for the reply. I ended up going with:


tell application "Adobe Illustrator"
	if (count of documents) > 0 then close every document saving no
	set user interaction level to never interact
	open alias filePath without dialogs
					
	set jpgOptions to {class:JPEG export options, quality:100, vertical scaling:300, horizontal scaling:300}
	export document 1 to file jpgFilePath as JPEG with options jpgOptions
	close document 1 saving no
end tell

This works.