Write this little code in the Applescript-Editor
tell application "Finder"
mount volume "afp://adress/sharename" as user name ¬
"USERNAME" with password "PASSWORD"
end tell
Save the Script as Executable and Drop it into your Start-Objects in System-Preferences -> Accounts
You can do the same for SMB-Volumes. In this case use "smb://" instead of "afp://"
Volume Mounter
for mounting AFP and SMB volumes
Version: 4.1d0
Use this in Apple-Script-Editor - josephsl
HiI have success*censored*ky tried using applesript to mount a volume on a server until I recently upgrade to a Mac Pro.
Now, even though this script runs at startup, it will not mount the remote volume.
It gives an error message saying that the volume can't be found.
If however I lanch it manually after startup, it successfully mounts it.
Any ideas why it doesn't work?
Dr Joseph San Laureano
Melbourne
Australia
Reply to This
Sunday, August 19 2007 @ 02:18 AM PDT