When I'm working with a single monitor I often have OO3 as a full-height window in the right-hand third of the screen, and some other application in the left-hand two thirds. (Taking notes, or working through some kind of list in OO3).
Here is a script which will resize and reposition the selected window (of any application, as it happens) to the rightmost third of the screen.
Edit the 1st four property values to get the window size and position that you want. (I personally use 3 or 4 of these scripts, with keystrokes assigned to each).
Here is a script which will resize and reposition the selected window (of any application, as it happens) to the rightmost third of the screen.
Edit the 1st four property values to get the window size and position that you want. (I personally use 3 or 4 of these scripts, with keystrokes assigned to each).
Code:
-- SET SIZE AND POSITION OF SELECTED WINDOW (ANY APPLICATION) -- NB: -- 1. only for single monitor setups -- 2. Not all windows can be arbitrarily resized ) -- EXAMPLE: A full-height window, rightmost third of the screen: -- POSITION (origin: top left) property pPosnAcross : 2 / 3 property pPosnDown : 0 -- SIZE (units: proportion of the desktop) property pSizeAcross : 1 / 3 property pSizeDown : 1 property pMenuHeight : 22 tell application id "com.apple.finder" tell window of desktop set {_, _, lngwidth, lngHeight} to bounds set lngHeight to lngHeight - pMenuHeight end tell end tell tell application id "com.apple.systemevents" tell front window of (first application process where frontmost = true) set position to {pPosnAcross * lngwidth, (pPosnDown * lngHeight) + pMenuHeight} set size to {pSizeAcross * lngwidth, pSizeDown * lngHeight} end tell end tell
Last edited by RobTrew; 2011-01-26 at 11:01 AM..