Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Applescript Detecting a shared computer and mounting drives

how do I use applescript to detect when a shared mac is available on my local net then mount it's drives to another mac?


I can mount the drives using a script manually, I just need to detect when the computer becomes available to trigger my mounting script.

Mac mini, OS X Mountain Lion

Posted on May 9, 2013 4:24 PM

Reply
1 reply

May 9, 2013 5:07 PM in response to Radjin

You can use the dns_sd Terminal command to list Bonjour services that are being broadcast. For AFP services you can list the current systems broadcasting by running the following command:


dns-sd -B _afpovertcp._tcp .


You can then connect to the computers listed by changing their names so the spaces are replaced with underscores, and then give it the suffix ".local" to make it a local network address.


I'm not sure how to best implement this into an applescript, as this is an ongoing scan of the network that will output new services as they appear.

Applescript Detecting a shared computer and mounting drives

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.