Skip to content


Subversion checkout URL

You can clone with
Download ZIP
An AppleScript for gathering offscreen windows to the main display
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Gather Windows.applescript

Gather Windows

Detaching or attaching a Mac to an external display can sometimes leave windows placed partially or wholly offscreen. This script can be used to bring them back to the main desktop (a similar thing can be done using the "Gather Windows" button of the Displays preference panel, but this script can be invoked from a keyboard shortcut, if you need to do this regularly).

Use responsibly.

Something went wrong with that request. Please try again.