Mapped drive - Finder window

Discussion in 'Mac Basics and Help' started by SnapperNZ, Jan 29, 2010.

  1. SnapperNZ macrumors newbie

    Joined:
    Jul 17, 2007
    #1
    Is there any way to suppress the Finder window that pops up after connecting to a network drive?

    I have 4 shared folders I connect to on a NAS and a Windows PC.

    So you can imagine, at logon, I get 4 Finder windows popup after the 4 have been mapped.

    I'd really like to be able to suppress those Finder windows - anyone got any ideas?

    I should add - currently they're mapped via Login Items in my account, but I do have an apple script which can perform the same mappings - so if it's a case of adding some syntax to the apple script to suppress the Finder window - that's not a problem.

    Snapper
     
  2. SnapperNZ thread starter macrumors newbie

    Joined:
    Jul 17, 2007
    #2
    Easy! Why didn't I google FIRST!

    tell application "Finder"
    close every window
    end tell

    Job done :)
     
  3. SnapperNZ thread starter macrumors newbie

    Joined:
    Jul 17, 2007
    #3
    Also - this may be handy to people.

    I've got the 4 drive mappings... (example below)

    tell application "Finder"
    open location "smb://nas/share1
    end tell
    tell application "Finder"
    open location "smb://nas/share2
    end tell
    tell application "Finder"
    open location "smb://nas/share3
    end tell
    tell application "Finder"
    open location "smb://nas/share4
    end tell

    So I've added this:

    delay 7
    tell application "Finder"
    close every window
    end tell

    The delay is to allow time for all the mappings to complete - 7 seconds seems long but sometimes the NAS powers down for power saving - so 7 seconds is good for me.

    Hope this might help someone!

    Snapper
     

Share This Page