I am trying to mount multiple SMB://volume/shares on the desktop with no further input then double-click on the Applescript script/application. I have tried the following scripts with no errors reported, but no results either.
tell application "Finder"
try
open location "smb://username
assword@server ip/share1"
open location "smb://username
assword@server ip/share2"
open location "smb://username
assword@server ip/share3"
end try
end tell
OR
mount volume "smb://ip address/share1" as user name "username" with password "password"
mount volume "smb://ip address/share2" as user name "username" with password "password"
mount volume "smb://ip address/share3" as user name "username" with password "password"
OR
tell application "Finder"
try
open location "smb//server ip/share1" as user name "username" with password "password""
open location "smb//server ip/share2" as user name "username" with password "password""
open location "smb//server ip/share3" as user name "username" with password "password""
end try
end tell
This last example does work somewhat but stops with the User Name and password entered in their respective fields but I still have to hit enter to complete the login process; though when I hit enter is claims it cannot connect to the server, using the IP Address or FQDN. Also, is there an expression or command for the enter command for each line that will finish the login process for this script?
Any suggestions or explanations of what I may have missed would be very much appreciated. Thank you.
tell application "Finder"
try
open location "smb://username
open location "smb://username
open location "smb://username
end try
end tell
OR
mount volume "smb://ip address/share1" as user name "username" with password "password"
mount volume "smb://ip address/share2" as user name "username" with password "password"
mount volume "smb://ip address/share3" as user name "username" with password "password"
OR
tell application "Finder"
try
open location "smb//server ip/share1" as user name "username" with password "password""
open location "smb//server ip/share2" as user name "username" with password "password""
open location "smb//server ip/share3" as user name "username" with password "password""
end try
end tell
This last example does work somewhat but stops with the User Name and password entered in their respective fields but I still have to hit enter to complete the login process; though when I hit enter is claims it cannot connect to the server, using the IP Address or FQDN. Also, is there an expression or command for the enter command for each line that will finish the login process for this script?
Any suggestions or explanations of what I may have missed would be very much appreciated. Thank you.
Last edited: