Hi,
I am trying to make a script to mount a network volume using the mount volume “smb://networkdrivename/user” but since it requires authentication after the drive is connected a dialog box asking for the username and password appears, is there any way to focus on username field and then password field and type some text in them.
This is what i have so far but it doesn’t seem to be working
mount volume "smb://netowrkdrive/"
tell application "System Events"
tell process "SystemUIServer"
repeat until exists window 1
delay 1
end repeat
tell window 1
keystroke username
end tell
end tell
end tell
Thanks