Opening Shared Folder on another machine.

Having a serious senior moment… :frowning:

My laptop shows up in the sidebar of any Finder window on my dual-core G5 machine whether it’s awake or dozing. By clicking on that icon, as you all know, a group of shared folders appear automagically. Clicking on any of them mounts it on my G5 desktop – no passwords, no IP address, etc.

Now the burning question: how do I get that to happen from an AppleScript. I have searched, but find solutions like mount “afp://user:pw@IPAddress”, which works, of course, but I’m looking for something more generic.

Hello Adam,

the most generic way is to use the Bonjour name (e.g. myServer.local) instead of the IP address and take the username / password with keychain scripting.
Bonjour is quite far away from AppleScript :wink:

Thanks, Stefan;

Glad to hear that Bonjour is “far away from AppleScript” – I thought I was just missing something, didn’t realize that “mount” understood the Bonjour address.