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: gklinger on Sep 25, '03 12:38:13PM
defaults write com.apple.safari "NSWindow Frame BrowserWindowFrame" \ '0 0 1024 685 0 0 1024 746'

The first two zeroes tell Safari to open the window at zero pixels from the top and right (so no offset, as it should be) and the next two values tell it that windows should be 1024 pixels wide and 685 pixels long.

Any chance of you telling us what the next four numbers do?

[ Reply to This | # ]

Fix funky default window position in Safari
Authored by: rgray on Sep 25, '03 01:17:05PM
Yes, please elabourate. In particular, why 685 and 746? (I get that it is size...) Is there some specific relationship between them that has to be observed?

[ Reply to This | # ]
Fix funky default window position in Safari
Authored by: uberhacker on Sep 25, '03 03:27:07PM

Final four? I will shed some light on the final two. Two zeroes prior to that seem like top left.

I have found that the final two numbers correspond to the screen resolution - almost.

The second last number is the width of the screen, whereas the final number is the screen height minus 22.

I determined this by switching resolution up and down once and moving the Safari window around a bit then quiting then checking the default value again.

Individuals should do some more testing to see if this 22 pixel number changes if the window is moved off the screen, or depending on what extras are turned on (Bookmarks, Address, Status, etc.). I haven't bothered to check at this stage - too busy watching ST:TNG.



[ Reply to This | # ]
Fix funky default window position in Safari
Authored by: garroth on Sep 25, '03 06:23:41PM

the last 2 numbers are usable screen space, the screen resolution minus 22 pixels height which is for the menu bar at the top of the screen (this space is unusable)



[ Reply to This | # ]
Fix funky default window position in Safari
Authored by: Anonymous on Sep 26, '03 08:06:43AM

I definately wasn't clear in my original post :)

AFAICS, this really shouldn't have anything to do with cascading - like many others I am a devout user of tabs, and command click to open new ones. Because of this, I never need to have more than one window open, and yet quite often find that when I launch safari the window opens in a different position to where it was when i quit (i.e. off to the right.) Using the defaults command in the original post in fact has no impact on cascading, and new windows will still open slightly offset from previous ones.

I read an anecdote somewhere (quite likely here?) about apple engineers demonstrating an early build of safari and tearing their hair out over this 'feature,' which I think is why I was so convinced it was a bug.

Still, six and half a dozen I guess...

And regarding the numbers 685 and 746 in the original command, I believe (as someone already pointed out) that the latter is usable screen height, and the former is the intended default height of the safari window upon launch. It's shorter because I keep the dock visible at the bottom of the screen.



[ Reply to This | # ]