tell application "FileMaker Pro"
activate
set nw to get count of windows
open file "Macintosh HD:Users:yvankoenig:Desktop:base Expo.fp7"
repeat
if (get count of windows) > nw then exit repeat (*
exit the loop when the doc's window is open *)
end repeat
display dialog "The window is open"
end tell