Hidden password entry in applescript
Hidden password entry in applescript
- Subject: Hidden password entry in applescript
- From: email@hidden
- Date: Tue, 29 Jun 2004 22:55:29 -0400
Hello,
I am trying to get a script that prompts for a username and password
then mounts a smb share based on the username. Unfortunately the
way that I have done it the password shows up instead of being masked
from people looking over my shoulder. I need a text feild for which the
characters of the password are replaced by dots.
Does anyone have any suggections. I have tried to get Dialog Director to
work but couldn't get any of the examples to work. I am using Mac OS X
10.2 and 10.3 on the various machines. Here is what the script looks like
+now:
tell application "Finder"
activate
display dialog "Enter your username" default answer ""
set dialogInfo to result
set userName to text returned of dialogInfo
display dialog "Enter your password" default answer ""
set dialogInfo to result
set yourpassword to text returned of dialogInfo
--if not (exists disk userName & "$") then
mount volume "smb://" & userName & ":" & yourpassword & "@" &
+"192.168.1.10/" & userName & "$"
--end if
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.