Re: Password in dialog???
Re: Password in dialog???
- Subject: Re: Password in dialog???
- From: KOENIG Yvan <email@hidden>
- Date: Sat, 9 Feb 2008 16:24:48 +0100
Le 8 févr. 2008 à 07:30, SVV Satyanarayana a écrit :
Hi,
I am newbie looking to learn Mac programming & scripting.
The following line displays a dialog which accepts a password with
OK button.
display dialog "Enter Admin Password" default answer "" buttons
{"OK"} default button 1
But the password is shown as aplhabets......is it possible to
display "*" for every character entered?
Hello
Display dialog belongs to Standard Additions so, the Standard
Additions dictionary would be your friend:
display dialog v : Display a dialog box, optionally requesting user
input
display dialog string : the text to display in the dialog box
[default answer string] : the default editable text
[hidden answer boolean] : Should editable text be displayed as
bullets? (default is false)
[buttons list of string] : a list of up to three button names
[default button number or string] : the name or number of the default
button
[cancel button number or string] : the name or number of the cancel
button
[with title string] : the dialog window title
[with icon number or string] : the resource name or ID of the icon to
display…
[with icon stop/note/caution] : …or one of these system icons…
[with icon file] : …or an alias or file reference to a ‘.icns’
file
[giving up after integer] : number of seconds to wait before
automatically dismissing the dialog
→ dialog reply : a record containing the button clicked and text
entered (if any)
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden