irritating window locations after a closed clam I switch back and forth, frequently, between 'closed clam' with a large monitor and 'just the laptop monitor' with a Retina MBP.

Whenever I switch, all my windows appear in unhelpful locations sticking off the edges of the visible screen. This happens in both directions. 

I currently run Yosemite.

Is there a way to make them recenter?
I use an AppleScript tied to a keyboard shortcut that runs as an Automator service.
Something like this:

tell application "System Events"
tell application process "iTunes" -- non running procs fail silently
    try
        set position of front window to {22, 26} -- or you can call windows by name
    end try
end tell
end tell


You'll need two scripts, one for each configuration. Obviously, you'll have to enter all your windows and Apps into the code, so this is only a worthwhile effort for the stuff you commonly use.