more mounting afp volume weirdness...
more mounting afp volume weirdness...
- Subject: more mounting afp volume weirdness...
- From: Bret Linford <email@hidden>
- Date: Thu, 15 Feb 2001 14:33:26 -0800
I asked a question previously about a problem that may be a Keychain issue
but I have another problem with my script. We have several server volumes
that have some similar naming conventions. For example, we have
"server1.3.0" and "server1.3.1". The problem is that if "server1.3.0" is
mounted and I run the below script (which is for server1.3.1), "server1.3.0"
will unmount. Both volumes have the same user/password combo. Any ideas?
Thanks!
tell application "Finder"
if (is mounted "server1.3.1") then
--Check if volume is mounted - Requires "MountServer" OSAX
UnmountServer "server1.3.1"
else
try
mount volume "afp://user:email@hidden/server1.3.1"
--Tries to mount volume. Change user name:password accordingly
end try
end if
end tell
--
Bret