Determine where new finder window opens?

Discussion in 'macOS' started by MacBoobsPro, Mar 5, 2010.

  1. MacBoobsPro macrumors 603


    Jan 10, 2006
    Ok I've been using OSX since it first came out but one thing I still don't understand is how you determine where a new finder window will appear. :eek:

    I recall someone once saying open a window, press CTRL then close the window and the next window will appear in the same spot as the now closed window. That doesnt work, nor does pressing command or any other combination I have tried.

    Can someone please explain how it works and how to get a window to open where I want it to.

  2. roadbloc macrumors G3


    Aug 24, 2009
    My finder windows open in the exact location where i last closed one. :confused:
  3. MacBoobsPro thread starter macrumors 603


    Jan 10, 2006
    Mine doesnt! :confused:
  4. Hal Itosis macrumors 6502a

    Hal Itosis

    Feb 20, 2010
    If i understand the OP, he's talking about /new/ windows:

    -click on the desktop
    -type ⌘⇧N [command-shift-n]
    -doubleclick the "untitled folder" icon

    That's a new window.

    AFAIK, the bounds (i.e., both position and size) of that window is hard-coded somewhere, and no one has found where, yet. [i.e., it's probably *not* in any plist.] Best we can do is set up an AppleScript and run it from Script Menu (which could also be done via a hotkey).

    property myWidth : 768
    property myHeight : 458
    tell application "Finder"
    		set fWind to front window
    		set {wLeft, wTop, wRight, wBottom} to get bounds of fWind
    		set bounds of fWind to {wLeft, wTop, wLeft + myWidth, wTop + myHeight}
    		tell front window
    				update every item with necessity
    			end try
    		end tell
    	end try
    end tell
    Edit: as written, my script only determines size. Set the wLeft and wTop variables to adjust position. Script operates on an existing window, so modify it to also create the folder if desired.

Share This Page