Comment on TwoUp

tell application frontApp
if (frontApp = "Macintosh HD:System:Library:CoreServices:Finder.app:") or (frontApp = "Macintosh HD:Applications:Mathematica.app:") then
set bounds of front window to {disp_x1, disp_y1 + 44, disp_x2, disp_y2}
else
set bounds of front window to {disp_x1, disp_y1 + 22, disp_x2, disp_y2}
end if
activate
end tell