[X-Unix] automounting when a network becomes available

Jerry Krinock jerry at ieee.org
Tue Mar 15 12:26:26 PST 2005


on 05/03/15 02:41, Stroller at MacMonster at myrealbox.com wrote:

> either Applescript or a Darwin CLI interface I can't find right
> now. 

This works for Apple volumes; maybe you could modify it for sambas

tell application "Finder"
    mount volume "afp://sn:password@10.0.1.201/Macintosh HD/"
end tell

where:
   sn is a short user name on the desired volume
   password is the user's password
   10.0.1.201 is its IP address of the desired volume
   Macintosh HD is its name

Yeah, I know that putting a password in a script like this is not good
security.




More information about the X-Unix mailing list