Okay, I think I have a solution to this that will work for me at least.
I wasn't interested in mounting the network shares to a user folder instead of inside the default /Volumes folder.
I tried adding a symbolic link to the /Volumes folder to a new location where the network shares would be mounted but that symbolic link is deleted on reboot.
But then I thought after reading some of the advice here: What if I have a volume on the local drive called "Network_Shares" or "Network_Storage" that I mount all the shares inside? This "Network_Storage" volume would then live inside the /Volumes folder and the shares would live inside it....keeps it nice and clean and easy to access.
Here's what I did to work around this issue:
Opened up disk utility and added a small partition (100MB) but it can be much smaller.
This partition will only serve as the root level for mounting network volumes is is automatically mounted every time the mac boots up.
Then I altered my applescript I originally posted near the top of this thread to read as follows:
--
--
--
--
--
--this first part is for my macbook only so it doesn't attempt to mount the shares unless I'm at the location where the wifi SSID is broadcast
set theWifi to "MySSID" -- the wifi SSID
set theList to paragraphs of (do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s| awk '{print $1}'") -- get the wifi list
if theList contains theWifi then
set serverAddress1 to "UserName:Password@Server-Address/Share_Name1"
set serverVolume1 to "Share_Name1"
set mountPoint1 to "/Volumes/Network_Storage/Share_Name1"
-- the line above might also be changed to set mountPoint1 to "Volumes/Network_Storage/" & serverVolume1
tell application "Finder"
try
if disk serverVolume1 exists then -- do attempt anything since it's presumable already mounted
else
with timeout of 3 seconds
do shell script "[ ! -d " & mountPoint1 & " ] && mkdir -p " & mountPoint1 & " || echo directoryOK" -- create the folder to host the mount point if it doesn't already exist
do shell script "mount -t smbfs //" & serverAddress1 & " " & mountPoint1
end timeout
end if
end try
end tell
set serverAddress2 to "UserName:Password@Server-Address/Share_Name2"
set serverVolume2 to "Share_Name2"
set mountPoint2 to "/Volumes/Network_Storage/Share_Name2"
tell application "Finder"
try
if disk serverVolume2 exists then -- do attempt anything since it's presumable already mounted
else
with timeout of 3 seconds
do shell script "[ ! -d " & mountPoint2 & " ] && mkdir -p " & mountPoint2 & " || echo directoryOK"
do shell script "mount -t smbfs //" & serverAddress2 & " " & mountPoint2
end timeout
end if
end try
end tell
end if
display alert "**** on this Apple!"
delay 10 -- check for drops every 10 seconds, may not need this anymore as it was added back in Mavericks, it's an enless loop so if you unmount a volume it will mount back within 10 seconds
end repeat