Auto network share mount annoyance

Discussion in 'Mac Basics and Help' started by sup191, Sep 22, 2005.

  1. sup191 macrumors newbie

    Sep 22, 2005
    I have a shared folder on my Windows XP machine called Music. I've mounted on my Mac and dragged the Music icon to the Login Items tab. When I boot, the shared folder automatically mounts correctly, but the folder pops open on the desktop. It's not a huge deal (more of an annoyance really) but how can I prevent the folder window from popping up when it's mounted on boot?
  2. Makosuke macrumors 603

    Aug 15, 2001
    The Cool Part of CA, USA
    I've run into exactly the same situation, and basically, you can't without mounting the drive in a different way. You could probably write a script to do a mount command instead of just opening an alias (which is what they way you're doing it is) and put the script in Login Items, but I'm not sure how exactly to go about that.

    Perhaps an Applescript or terminal expert will chime in with some help.
  3. sup191 thread starter macrumors newbie

    Sep 22, 2005
    Well, your response made me dig around a little and I finally found the answer. Here's my script file:

    tell application "Finder"

    mount volume "smb://domain;username : password@ipaddress/shareddirectory"

    on error
    display dialog "There was an error mounting the server drive." buttons {"Cancel"} default button 1

    end try

    end tell

    There's no space between the username and password, but the forum kept thinking the "colon p" was a smiley.

    Compiled and saved as an application. I then dragged the application into my Login Items. Works like a charm! I just got the entry Mac Mini last week and am really enjoying playing with this machine. I've been a Windows user since the early 90's and this is my first jump into the Mac world. I'm loving things so far!

Share This Page