Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have Chrome open most of the time in the lower right corner of my screen and work mostly with tabs. Sometimes I need a new Chrome window (instance) and hit cmd-n. Now the new window always opens up in the upper left and I have to center it. Is there a way to automatically center new chrome windows (or maybe maximize them..)?

share|improve this question

2 Answers 2

You can do this with AppleScript, if you'd like. Once you enable "access for assistive devices" under the Universal Access section of System Preferences, you can use the following applescript to make a new window and resize it:

tell application "Google Chrome" to activate

tell application "System Events"
    tell process "Google Chrome"
        click menu item "New Window" of menu "File" of menu bar 1
    end tell
end tell

tell first window of application "Google Chrome" to set bounds to {0, 0, 800, 800}

That'll make a new window of size 800x800 with the upper left corner of the window in the upper left corner of the screen. Then, there's plenty of ways to hook an applescript up to a keyboard shortcut.

share|improve this answer
    
Wow. Thanks! It's not what I had in mind, but that should have the same effect. Seems I should take a closer look at Applescript for stuff like this. –  fad Apr 8 '10 at 12:09

Chrome uses the standard Mac OS X behavior where each new window is offset down and right from the current window. If you keep your window about 20 pixels from the bottom and right corners of your screen then the new window will open over the current window rather than at the top left. This might make it easier to move where you want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.