gather safari windows in leopard

Posted by – October 31, 2008

Leopard has a really annoying behavior. When you disconnect your macbook from the external monitor, all your windows move over, which is to be expected. But when you reconnect the macbook to your external display, it doesn’t move the windows over.

Apparently the only fix right now is to hit the F7 button on the macbook twice, make it go into mirror and then out of mirror and you’ll find all your windows back on the external (primary) display.

However, here’s a little applescript to move all the Safari windows over:


tell application "Safari"
activate
set the bounds of the first window to {0, 0, 1200, 900}
try
set the bounds of the second window to {0, 0, 1200, 900}
set the bounds of the third window to {0, 0, 1200, 900}
set the bounds of the fourth window to {0, 0, 1200, 900}
set the bounds of the fifth window to {0, 0, 1200, 900}
set the bounds of the sixth window to {0, 0, 1200, 900}
set the bounds of the seventh window to {0, 0, 1200, 900}
set the bounds of the eighth window to {0, 0, 1200, 900}
set the bounds of the ninth window to {0, 0, 1200, 900}
set the bounds of the tenth window to {0, 0, 1200, 900}
end try
end tell

Just paste it into script editor and run.

0 Comments on gather safari windows in leopard

Respond | Trackback

Respond

Comments

Comments