opening shares in leopard with a script

leopard no longer allows clear text passwords… so my old hand code:

try
	open location "afp://bar@10.10.10.62/mars-photGallery/"
on error -- oops, cant open
	display dialog ("Could not open the foo on the bar") buttons {"OK"}
end try

now, no longer works… any thoughts?

also - we have to add Leopard to the system info drop down…

Hi,

open location is not the optimal command to open AFP volumes
This works in Leopard as well as in Tiger

try
	mount volume "afp://user:pass@10.10.10.62/mars-photGallery/"
on error -- oops, cant open
	display dialog ("Could not open the foo on the bar") buttons {"OK"}
end try

i was still having issues with this one as well… I think it is a clear text password issue…

i appreciate you trying to help though…

my boss just upgraded to leopard… i have to figure this out…