I have a Mac (Sierra with 1 user account) and a Synology NAS (DSM 6.0 with 2 user accounts), and I'd like to mount shares for both accounts on my Mac. So I wrote that script (and set it as startup item):
try delay 5 mount volume "afp://user1:email@example.com/Share1" mount volume "afp://user2:firstname.lastname@example.org/Share2" end try
Problem is, the first mount command works, but not the second (whatever the order of the lines), as if there were only one AFP user allowed at the same time. The error message is (approximately translated):
Connexion to nas.local server failed.
Share doesn't exist on the server. Check the share name, then retry.
Looks like the first user is used for the second mount command.
I don't think it's an AFP limitation (is it?), so there may be another way to mount those shares?