Stop Mapped Drives From Opening in Finder at Restart?

Discussion in 'macOS' started by leftheaded, Oct 15, 2011.

  1. leftheaded macrumors member

    May 10, 2010
    How can I stop the finder windows from opening at startup for all my mapped drives? I've got a few shares set to mount at restart, but that doesn't mean I want the finder window too. Just connect in the background possible?
  2. Jmx macrumors member

    Jun 13, 2006

    I would also like to know how to prevent this.
    It doesn't matter if you select/de-select hide in your account start objects, the mounted drives keeps opening each time i start my computers at home and at work.
    It becomes annoying to close each window on each computer every day.

    Anyone :confused:
  3. Jmx macrumors member

    Jun 13, 2006
    Found a solution

    I found a solution that i thought someone would like to know :)

    1. Get info on the volume you like to have mounted and copy the address.
    In my case: (afp://Server._afpovertcp._tcp.local/Drobo)

    2. Open AppleScript Editor (found in /Applications/Utilities) and paste this
    tell application "Finder"
    	mount volume "afp://Server._afpovertcp._tcp.local/Drobo" as user name "your login name here"
    end tell
    Change to your address of course, and your login name.

    3. Save that as a program

    4. Open System Preferences->Users and Groups
    Select your account and the Start Object tab, and then drag your AppleScript program into the list.

    Now i get my Drobo mounted without any Finder window popping up.
    This will come in handy at work were i have 5 different mounts which earlier each opened a separate Finder windows i had to close.

    I wish this would have been easier done in the Start Objects with a simple check box like "open mounted volumes" or something.

    Cheers :)

    Attached Files:

  4. Jmx macrumors member

    Jun 13, 2006

    So my previous solution didn't work as expected at work on 10.6.8
    I still got pop up Finder windows for each mounted volume.

    But this script works better :)
    It mounts the volumes silently, no Finder windows to close.

    In below case "John" is the user name and "doe" is the password.
    mount volume "smb://John:doe@Server_One/Company"
    mount volume "afp://John:doe@DiskStation._afpovertcp._tcp.local/Main"
    mount volume "afp://John:doe@DiskStation._afpovertcp._tcp.local/home"
    mount volume "smb://John:doe@Lacie_Station/media"
    Cheers :)
  5. stuartrozier macrumors regular

    Nov 12, 2011
    Hello, I tried this, it did work to an extent....

    I coped the command, and it did run when I pressed the 'run' button....


    everytime I turned on the mac, the script editor would now pop up on every startup ? and I have to manually press 'run' for the command to work,

    many thanks,

  6. benwiggy macrumors 68020

    Jun 15, 2012
    If you want to stop the Finder opening a new window for a network drive, use this Terminal command:

    defaults write OpenWindowForNewRemovableDisk -bool false
  7. dmacpher macrumors newbie

    Feb 18, 2014
    This doesn't appear to work for me under Mavericks for some reason. The finder window still opens when I log in and my Synology share is mounted.
  8. inequals macrumors newbie

    Jul 15, 2014
    Just as a data point, it did work for me on Yosemite 10.10.1. I've been wanting to fix this for years as I have an automounting DMG containing my piano sample banks. Woohoo
  9. chrismitt2002 macrumors newbie

    Jun 25, 2015
    im really confused of what to put into apple script i have about 8 windows shares and they all open finder winodws on yosimite 10.10.1 upon entering my pw

    here is my shares

    their are 7 total drives in my server and would love to have a working sript or some kinds of soulution so that upon putting in my password for network shares it does not open up finder windows and just acts more like good old windows :D
  10. charitytechsupport macrumors newbie

    Sep 27, 2015
    Does anyone know how to do this on El Capitan?

    The terminal command above did nothing fir me.

  11. ssorgs macrumors newbie

    Sep 6, 2016

Share This Page