automated network folder mount script for mac

set myip to do shell script “ifconfig | grep ‘broadcast’ | awk ‘{print $6}'”
if myip = “10.168.1.255” then
mount volume “smb://workgroup;username:[email protected]/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”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.