Leopard (10.5) - Script to Mount/UnMount Volumes

I have a script I used in Tiger that mounts AFP and SMB volumes. Well, things just seem “different” in Leopard and I wonder if this script is even necessary.

The heart of the script would do:

for smb:
mount volume “smb://userName:password@serverName/volumeName”

for afp:
mount volume “afp://userName:password@serverName.local/volumeName”

Well, now that Leopard sets this all up under the “SHARED” section in the Finder and if you store the credentials in your password keychain, I wonder if this is even necessary.

The point of this script was because when I would put the system to sleep, all my volumes got “cock’d” up and it was annoying because I would get the beach ball upon awakening the Tiger system. So I had scripts to unmount volumes up sleep and mount volumes upon awakening.

Any comments are welcome…