RE: Mounting a remote AFP Shared Volume.
It's much simpler then you think. Try the following:
ShowURL "afp://192.168.1.2" replace IP with address you are trying
to connect to.
If you need it to connect using a known username and password, then try:
ShowURL "afp://username:[EMAIL PROTECTED]"
If you know the exact volume name, then try:
ShowURL "afp://username:[EMAIL PROTECTED]/VolumeName"
However, how do you tell Realbasic that it is ok to continue with
code execution, after the end user has entered the necessary
information in the Apple file server connection window?
I do this by first calling the ShowURL command, then in a Timer I
place code that looks for the following running shell process "AFP
client", when this process is no longer found, Realbasic continues
with code execution.
Your app needs to look for a process called "AFP client" by issuing
the Realbasic Shell command feeding it -> top -l 1 | grep 'afp_mount'
When your app no longer sees the process running in TOP, have it
check for a valid path using GetFolderItem, which passes or fails,
telling me that either the user hit cancel or there was an error, or
there was a successful connection.
Please note that the 'afp_mount' process only works in Mac OS X 10.4
or higher. There is a different process under 10.3.
Hope that helps.
Jeff
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>