Closing "Find" window

I have a script that runs in OmniOutliner. The following are some snippets of code from the script.


click menu item "Find..." of menu 1 of menu item "Find" of menu 1 of menu bar item "Edit" of menu bar 1
...
click button "Next" of window "Find"

The script is finding the text that I want but I cannot close the find window. Immediately after the click “Next” command I do the following:


close window "Find"

I am in Script debugger and I get the message

System Events got an error: window “Find” of process “OmniOutliner Professional” doesn’t understand the close message.

How do get the “find” window to close?

Vincent


		click button 1 of window "Find"

Thanks Eelco!

That worked.
:slight_smile: