I'm having a difficult time with the following code. It seems to me that it should create a window and then close it, but it ends up closing all of the windows:
Any help? Is this a bug?
tell application "OmniFocus" tell default document set winTarget to make new document window close winTarget end tell end tell