Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Fix funky default window position in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix funky default window position in Safari
Authored by: vonleigh on Sep 25, '03 02:30:24PM

I actually don't like cascading. I would like them all to open in the same place. Unfortunately the only solution seems to be to install APE, something that I won't do on a production machine.

v



[ Reply to This | # ]
...don't like cascading windows...
Authored by: jiclark on Sep 25, '03 04:07:14PM

I agree. So somewhere along the line I came up with the following AppleScript:

tell application "Safari"
activate
if not (exists document 1) then return "no document"
end tell

tell application "Safari"
set the bounds of window 1 to {0, 22, 1275, 1050}
end tell

I then appended the script (using iKey) to the cmd-n new window command. I also have a shortcut that invokes it I need be otherwise. And I think I also applied one of the "defaultswrite" commands to keep it from happening when Safari first starts up...

Hope this helps some of you. It's *always* bothered me.

---



[ Reply to This | # ]
...don't like cascading windows...
Authored by: jiclark on Sep 25, '03 04:09:36PM

I realized that my comment made it sound like I wrote that script. I don't remember where I got it (I actually think it was here), but I did *not* create it myself. I may have edited it a bit though...

---



[ Reply to This | # ]
another easy re-size option
Authored by: Krioni on Sep 25, '03 05:02:42PM
Another easy way to re-size your windows quickly is to make a Javascript bookmarklet and put it as the first bookmark in the Bookmark bar. Then you can just hit Command-1 to re-size the window to the full screen (leaving room for the dock).

javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);

I think I got that from macosxhints.com.

[ Reply to This | # ]

another easy re-size option
Authored by: phil4u2 on Sep 26, '03 01:26:04PM

Actually, there's another "Feature" or "bug" (whichever you wanna call it) that really bugs me...
Safari always opens new windows at the same size and place as the last opened window (If you opened a pop-up window that's tiny, and then closed it, new windows will open at that last size, tiny)

I wrote a HTML page, saved it locally, and use it as my start page. (in the general preferences, chose start-page)

Here's the code of the page:

<html>
<title>Start full size</title>
<body>

<script language="JavaScript">
<!--
if (window.screen) {
window.moveTo(0,0);
self.resizeTo(screen.availWidth - 150 ,screen.availHeight);
}
//-->
</script>

<script language="JavaScript">
<!--
function redirect()
{
window.location = "http://www.google.com"
}

setTimeout("redirect();", 1)
// -->
</script>

</body>
</html>

What it does, it first places the page at the top left of the screen, and then maximizes it minus 150 pixiels on the right. Then it redirects the page to a page of your choice (in that case, www.google.com).

Works for me!



[ Reply to This | # ]
Fix funky default window position in Safari
Authored by: gmachen on Sep 27, '03 01:14:59PM

I cannot find fullscreensafari.ape anywhere; the original mac.com homepage seems to have evaporated. Anyone know where it can be downloaded? Or can someone post it on a server somewhere so we can download it? Thanks!



[ Reply to This | # ]