The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   close a window (not all windows) (http://forums.omnigroup.com/showthread.php?t=7147)

umop 2008-02-11 01:56 PM

close a window (not all windows)
 
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:

[CODE]
tell application "OmniFocus"
tell default document
set winTarget to make new document window
close winTarget
end tell
end tell
[/CODE]

Any help? Is this a bug?

Thanks,
Eric

RobTrew 2008-02-12 06:37 AM

Bug.

The following seems to confirm it, by mopping up every window in sight.

[CODE]tell application "OmniFocus"
activate
tell default document
repeat 10 times
make new document window
end repeat
end tell
close front window
end tell[/CODE]

Worth reporting.


All times are GMT -8. The time now is 10:40 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.