'Hidden Answer', in AppleScript Studio

hello,

i’m trying to convert a program in AppleScript over to AppleScript Studio. in my AppleScript version, i have this line:

set userPass to text returned of (display dialog "What will be the password for this user?" default answer "" with hidden answer)

so that the answer is hidden. how do i do something like this in AppleScript Studio?

cheers.

Place your text field in your window as you would for any regular text field. Then, with the text field selected, go to the “Custom Class” pane in the IB inspector window. It should be set as a NSTextField by default, but you can set it as an “NSSecureTextField” instead. Just save your project and run it, and it will be the same style of field as the hidden answer in plain AS.

j

thank you!

that works perfectly.