set myip to do shell script “ifconfig | grep ‘broadcast’ | awk ‘{print $6}'”
if myip = “10.168.1.255” then
mount volume “smb://workgroup;username:password@10.168.1.254/path/”
else
display dialog “Not able to connect server” buttons {“ok”} default button “ok”
end if
One Reply to “automated network folder mount script for mac”