Script for FreeHand MX

Hi,

I’m writing my first script and this is what I am trying to do.

Open a FreeHand MX document
Perform a ‘Find & Replace’
Export as a BMP
Close document with out saving

This is what I have so far:

activate application “FreeHand MX”
tell application “System Events”
tell process “FreeHand MX”
click menu item “Open…” of menu 1 of menu bar item “File” of menu bar 1
click menu item “Text” of menu 1 of menu item “Find & Replace” of menu 1 of menu bar item “Edit” of menu bar 1
click menu item “Export…” of menu 1 of menu bar item “File” of menu bar 1
click menu item “Close” of menu 1 of menu bar item “File” of menu bar 1
end tell
end tell

It keeps stopping after the open command, is there anyway to have it continue through to the close?

TIA

Mickey