Could not mount volume "myname"

Hi,

I’ve a small problem.

Our company with 600 users has 3 file servers. There are a replica of a master server.
No problem here.

I’ve made an applescript studio application for home users to login on there home folder (with vpn).
It’s very difficult to let the user known where her/his home folder is living (3 servers and 600 users)

this is de basic of my script:


property TheServers : {"Spike", "Tyke", "Toodles"}
---
		set TheName to content of text field "inlognaam" of window "OpenServer" as string
		set ThePass to content of text field "password" of window "OpenServer" as text

----
tell application "Finder"
	repeat with i from 1 to number of items of TheServers
		set ServerName to item i of TheServers
		try
			mount volume "afp://" & ServerName & ".mydomain.nl/" & TheName as user name TheName with password ThePass
		on error
			-- do something here
		end try
	end repeat
end tell

The main problem is the message from the finder ‘Could not mount volume “myname”’
This message is shown 2 times, because the other 2 servers has no user folder “myname”

With OSX 10.3.x this message wasn’t show.

My question : How do I get rid of this message?

Groetjes uit Holland (greetings from holland)
Andre

Model: macbook pro
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Hi
You could probably use


if exists volume "afp://" & ServerName & ".mydomain.nl/" & TheName
then
mount volume "afp://" & ServerName & ".mydomain.nl/" & TheName as user name TheName with password ThePass
end if

this is in the repeat loop instead of the try statement.
Let me know if it works out for you

Rajesh