How do I bypass "problem" dialogs (not errors) on opening files?

I’m trying to adapt the SaveAsMIF script supplied with Adobe FrameMaker; I’ve solved a number of minor problems and now I’m faces with having Applescript either answer or ignore one of three dialogs that might pop up when opening files; the script currently reads:
Open this Scriplet in your Editor:

with timeout of 6000 seconds
set appName to “Framemaker 6.0”
set Foldername to (choose folder with prompt "Select a folder to open: ") as string
set FolderListing to list folder (file Foldername)

tell application appName
repeat with i from 1 to the number of items in FolderListing
set FolderItem to item i of FolderListing
if folder of (info for file (Foldername & FolderItem)) is false then
if file type of (info for file (Foldername & FolderItem)) is “FASL” then
open file (Foldername & FolderItem)
save document 1 in file (Foldername & FolderItem & “.mif”) as "MIF "
close document 1 without saving
end if
end if
end repeat
end tell
end timeout
The three dialogs that occasionally pop up (but can be ignored for MIF creation) are:

“Missing File”, where it would be handy to select the radio button “Ignore All Missing Files” then press “Continue”
“Some important graphics could not be displayd… grey boxes.” where pressing “OK” is all that’s needed
“File contains unresolved cross-references…” where pressing “OK” is all that’s needed

During batch processing, it’s possible for all, some or none to show up in the same file; what’s easiest way to set up Applescript to respond to any or all of them when opening a file? It’s probably something simple, but I’m still drawing a blank; I’m using OSX 10.3.9, but FrameMaker’s version 6 running under Classic.

Thanks,
Walt Sterdan

I dont know whether it will work or not but its worth a try
i added a try statment to your script

with timeout of 6000 seconds
	set appName to "Framemaker 6.0"
	set Foldername to (choose folder with prompt "Select a folder to open: ") as string
	set FolderListing to list folder (file Foldername)
	
	tell application appName
		repeat with i from 1 to the number of items in FolderListing
			set FolderItem to item i of FolderListing
			if folder of (info for file (Foldername & FolderItem)) is false then
				if file type of (info for file (Foldername & FolderItem)) is "FASL" then
					try
						open file (Foldername & FolderItem)
						save document 1 in file (Foldername & FolderItem & ".mif") as "MIF "
						close document 1 without saving
					end try
				end if
			end if
		end repeat
	end tell
end timeout

Thanks, but that didn’t do it; it still stopped and waited for input the first time it opened a file that was missing a graphic.

I have to try and detect when and which kind of warning box pops up, then press the appropriate buttons for it that dialog box.

Any suggestions for detecting and identifying the various types?

– Walt Sterdan