Reverting to slate for window management because applescript is too limited :(