AppleScript Studio: Center all windows and panels
Your application may use several windows and panels. The main window, the search panel, the progress panel and so on.
The user can move them freely on the screen and it's a good practice to save and remember those positions.
But if for any reason you want to reset the windows positions and center them, there's a sweet little command to do it:
tell every window to center
This will affect visible and hidden windows (and panels). You can call it on the awake from nib handler to center at startup.
It may be useful in a multi-screen computer, to rejoin all windows on the main display.