The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
close a window (not all windows) Thread Tools Search this Thread Display Modes
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
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
Worth reporting.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
close all windows except the front steve OmniFocus 1 for Mac 2 2008-11-06 09:05 PM
Save Window Sizes on Close markettrue OmniWeb Feature Requests 2 2006-09-30 07:54 AM
Source View window will not close shpoffo OmniWeb Bug Reports 1 2006-07-04 12:43 PM
Window > Close Tab Handycam OmniWeb Bug Reports 18 2006-06-26 11:26 AM
Close download window after X seconds revs OmniWeb Feature Requests 1 2006-06-20 02:21 PM


All times are GMT -8. The time now is 11:09 AM.


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