The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   close all windows except the front (http://forums.omnigroup.com/showthread.php?t=10488)

steve 2008-11-06 06:47 PM

close all windows except the front
 
I often find myself with too many OF open windows.

Does anyone know a trick to close all open windows except the front? I know if you hit the small button with the x in the middle (top left of the window) and hold down the option key all windows will close.

Thanks,
Steve

whpalmer4 2008-11-06 09:00 PM

1 Attachment(s)
This script should do the trick:

[code]
tell application "OmniFocus"
set mainWindow to front window
set frontID to id of mainWindow
set background to (every window whose id is not frontID)
repeat with thisWindow in background
close thisWindow
end repeat
end tell
[/code]

Shamelessly derived from troyb's script to merge OmniWeb windows!

steve 2008-11-06 09:05 PM

Thanks so much for taking the time to do this! I'll give it a shot.

Steve

p.s. hey that worked great!!!


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

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