Get server of AFP volume

I’ve been digging and can’t seem to figure out if there is a way to access the “Server” attribute of a mounted afp volume. If you do a “Get Info” on an afp mounted share, you’ll see a property under the “General” tab that is called “Server” and lists a value similar to “afp://server/share”. I can’t seem to figure out where, if anywhere, that information could be accessed. I’m willing to use a shell script or AppleScript to access the information. Can anyone help me with this one? Any thoughts?

Thanks in advance

Hi,

in 10.5 or later System Events knows


tell application "System Events" to get server of disk "myVolume"

Dang, I always forget about System Events. That’s exactly what I needed, thanks so much!