• 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
Re: Password in dialog???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Password in dialog??? (From: SVV Satyanarayana <email@hidden>)

  • Prev by Date: Re: a date is not a date? Or: Why I sometimes hate AppleScript...
  • Next by Date: Re: a date is not a date? Or: Why I sometimes hate AppleScript...
  • Previous by thread: Password in dialog???
  • Next by thread: Re. Password in dialog???
  • Index(es):
    • Date
    • Thread