Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sup191

macrumors newbie
Original poster
Sep 22, 2005
2
0
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?
 

Makosuke

macrumors 604
Aug 15, 2001
6,748
1,437
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.
 

sup191

macrumors newbie
Original poster
Sep 22, 2005
2
0
Makosuke said:
Perhaps an Applescript or terminal expert will chime in with some help.

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

tell application "Finder"

try
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!
:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.