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 |
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.