Here's another example using Applescript:
tell application "Finder"
set {0, 0, dtw, dth} to bounds of window of desktop
end tell
tell application "Finder"
reopen
activate
try
set bounds of window 1 to {0, 22, dtw / 2, dth / 2}
end try
end tell
tell application "Safari"
reopen
activate
try
set bounds of window 1 to {0, 22, dtw, dth}
end try
end tell
tell application "Terminal"
reopen
activate
try
set position of window 1 to {0, 22}
set size of window 1 to {dtw / 2, dth - 22}
end try
end tell
tell application "TextEdit"
reopen
activate
try
set bounds of window 1 to {dtw / 2, 22, dtw, dth}
end try
end tell
Working with multiple monitors requires way too much wizardry though.
SizeUp has separate actions for moving a window to the next monitor and setting bounds for windows.