AppleScript to mount network drive at log on.

Hey Guys, I created a network drive to use as a Time Machine, however I need a script to mount the drive at log on. Can anyone help me with that?

Andrew
Hey Guys, I created a network drive to use as a Time Machine, however I need a script to mount the drive at log on. Can anyone help me with that?

Andrew

I use an app called Drive Mounter:
https://itunes.apple.com/us/app/drive-mounter/id441149468?mt=12&at=10l3Vy

Since I purchased the app, they’ve released a free version, too:
https://itunes.apple.com/us/app/drive-mounter-free/id471070931?mt=12&at=10l3Vy

I have installed Drive Mounter but it will not open a share(s) on a NAS e.g. smb://admin@NAS._smb._tcp.local/Apple. There are no messages I can see and nothing happens after a Restart or clicking 'Connect drives on list'.
Using 'Go', 'Connect to Server', it mounts the share (and I have the option set to display an icon on the desktop) as expected.
I got in touch with Drive Mounter and they suggested I changed smd to cifs.
So I changed:
smb://admin@NAS._smb._tcp.local/Apple
to
cifs://admin@NAS._smb._tcp.local/Apple
and it now works. Note, changing the second occurrence of smb did not work and I don't know enough to explain why.

Original thread: https://forums.imore.com/threads/applescript-to-mount-network-drive-at-log-on.259089/