Mac OS - Reconnecting Network Drives on Startup

February 18th, 2008

I did this ages ago in Tiger, and forgot how I did it, so here’s a note to myself in case I forget again.

Assuming network drives are SMB connections, create the following script in Script Editor, covering each of the shares you need to connect to:

mount volume "smb://username:password@ip address/sharename"

Compile it somewhere as a filename, say in documents.
Then go to User Prefs, System Accounts, and then Login Items for the right account.
Click ‘+’ to add a new item and select the applescript you saved.
Tick the box to active it.

I think that’s it. Again, use IP Addresses rather than hostnames as hostnames still seems to be broken in 10.5.2 - let me know if this is the case with yours too, could just be something I’ve done.