The Omni Group Forums

The Omni Group Forums (
-   OmniFocus 1 for Mac (
-   -   close all windows except the front (

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.


whpalmer4 2008-11-06 09:00 PM

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

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

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.


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.