Applescript for launching resizing positioning terminal windows
On my primary computer, I have 3 monitors. I always have one monitor dedicated to terminal windows. I then realized I can just use an applescript to fill the monitor up with 5 packed in terminals of different dimensions automatically.
(* (x,y) positions from top left of main monitor: *) (* topleft-corner of window, bottom-right corner *) (* Search for CursorCoordinates in the Mac App Store *) tellapplication"iTerm" activate try repeat5times tell i term application"System Events"to key code 13 using command down endrepeat endtry repeat5times tell i term application"System Events"to key code 45 using command down endrepeat setthe bounds of window 1to {-1920, 0, -965, 540} setthe bounds of window 2to {-967, 0, 0, 540} setthe bounds of window 3to {-1921, 540, -1280, 1080} setthe bounds of window 4to {-1280, 540, 0, 831} setthe bounds of window 5to {-1280, 830, 0, 1080} endtell