• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Hidden password entry in applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Hidden password entry in applescript
      • From: Graff <email@hidden>
  • Prev by Date: Quark Making Rules Not So Easy
  • Next by Date: Re: Hidden password entry in applescript
  • Previous by thread: Re: Need a little help...
  • Next by thread: Re: Hidden password entry in applescript
  • Index(es):
    • Date
    • Thread