A script to tile windows in Mac OS X

This is a clever way of doing it. Something if you want more windows-like behavior.  Thanks ycc2106!

This script seems to work for others than me:
http://macscripter.net/viewtopic.php?…
Use the updated version lower down.

This script will stack them :
–CopyPaste in ScriptEditor
property h_offset : 22
property y_offset : 22

tell application “Finder”
set the window_count to the count of windows
if the window_count is not greater than 1 then error number -128
copy the bounds of window 1 to {x1, y1, x2, y2}
set the window_width to x2 – x1
set the window_height to y2 – y1
repeat with i from 2 to the window_count
set the position of window i to {(x1 – ((i – 1) * h_offset)), (y1 – ((i – 1) * y_offset))}
copy the bounds of window i to {a1, b1, a2, b2}
set the bounds of window i to {a1, b1, (a1 + window_width), (b1 + window_height)}
end repeat
end tell

Share

One comment

  1. Pingback: Thailand’s Stonehenge ? « chimac.net – Stuff worth knowing about

Post a comment