Adobe Illustrator save windows

Hi all,

Is there a way to check whether Illustrator has a window (i.e. Save as) or dialog open that does not require UI scripting?

tell application "System Events" to tell process "Adobe Illustrator" to get every window

returns {} if ‘enable access for assistive devices’ is disabled in System Preferences, but {window “Save As” of application process “Adobe Illustrator”…} if it is turned on.
I need my script to pause if the user is doing something other than using AI normally, but all the users have this pref turned off.
It seems AI can still perform background tasks whilst a save as window is present, it just looks untidy and confusing to have another dialog box appear over the top.

Is there some other attempt to perform a task that would have a different result if a dialog was present?

Very grateful for any ideas.

Ian