I have a script that needs to mount server volumes. Since this will be running in different locations, I needed to use a list of the needed volumes in a file that the script can read when it starts. The problem is that the volumes do not all mount in the Finder, but do all mount on the UNIX side. One or two of the volumes will appear on the desktop and be accessible, but all the others don't. They are all in the /Volumes directory and they are accessible through Terminal. I've tried putting in delays and using different mount commands, but I can't get it to work.
set serverList to {{|Server Name|:"MyServer", |Password|:"MyPassword", |Volumes|:{"Volume 1", "Volume 2", "Volume 3"}, |User Name|:"MyUserName"}} repeat with m from 1 to the count of serverList set thisServer to item m of serverList set thisServerName to the |Server Name| of thisServer set thisUserName to the |User Name| of thisServer set thisPassword to the |Password| of thisServer set theVolumes to the |Volumes| of thisServer repeat with v from 1 to the count of theVolumes set thisVolume to item v of theVolumes try --mount volume thisVolume on server thisServerName as user name thisUserName with password thisPassword mount volume "afp://" & thisServerName & "/" & thisVolume as user name thisUserName with password thisPassword delay 1 end try end repeat end repeat
Any help would be greatly appreciated.
Cliff |