Hi guys,
I’m trying to get Snow lep. to run an applescript which is designed to connect users to a network share (Via the net) but when i run the script it asks for the username and password as per the script and then goes to mount the drive, but then asks for a reentry of the username and password is there any way in which i can carry the username and password from the script into this box. I’ve had to remove the weblink but its a https://
property user_name : ""
property pass_word : ""
property network_share : ""
tell application "Finder"
if user_name is "" then
set dialog_1 to display dialog "Please enter your username: " default answer ""
set the user_name to the text returned of dialog_1
end if
if pass_word is "" then
set dialog_2 to display dialog "Please enter your password: " default answer "" with hidden answer
set the pass_word to the text returned of dialog_2
end if
set network_share to "https://folders.........."
mount volume network_share
end tell
Any help much appreciated.