Script to map network drives

Iam trying to write a script that will map a user to a Win 2K server share, Here is what I tried:

tell application “Finder”
Open location “smb://tcipar01/common”
Open location “smb://tcipar01/mac1”
end tell

I get an error code returned when i try to run this script:

Finder got an error: An errr of type -10814 has occurred.

I can’t find that error code anywhere. Is there a better way to handle this? A script already written? In case you can’t tell, I am new to Macsand scripting :slight_smile:

You could try a


tell app"finder"
try
mount volume "smb://tcipar01/common"
mount volume "smb://tcipar01/mac1"
end try
end tell