How does I find out the afp mount point?
I'm running a launchd job to backup some files to my AirportExtreme attached usb drive. I mount the afp share with:
mkdir /Volumes/share
mount_afp ip.ad.dr.ess/share
But there is a problem, when I have a drive with the same name! So when the other drive is mounted to /Volumes/share, my AE-afp is mounted to /Volumes/share-1 and my script runs and tries to mount the AW-afp I get a message that it's already mounted. The problem now is that I don't know the exact name of the moint point. I should now that it's mounted to /Volumes/share-1 but I don't know. My scripts now backups to the wrong volume!
Is there a way how to find out the afp mount point?
I tried applescript inside my shell script but when the launchd job runs I get an error -6600! So applescript/osascript doesn't work here!
Thanks for your help
Robert
ups sorry for my english!
Message was edited by: Robertmtk
Mac OS X (10.5.7)