Hiding text in input dialog box on OSX 10.4.11

How do you hide the text in input boxes or display a “*” instead of each actual character typed?

Model: PowerPC G4
Browser: Firefox 3.0.1
Operating System: Mac OS X (10.4)

Hi,

use the boolean hidden answer parameter

Hi,
I’m not sure to have understood your question, but there is a “ScriptingAddition”, which gives you the ability to ask users of your script after your admin. password before proceeding in the task. I think that you can find these extension without problems…

Try this:

set theresult to display dialog "enter password" default answer "" with hidden answer

Okay, I tried to use this:
set firstText to text returned of (display dialog “Password” hidden answer “”)

instead of this:
set firstText to text returned of (display dialog “Password” default answer “”)

But I got an error message that says:
"Can’t get <> of {<>:“OK”}

The dialog box pops up, but I can’t see any space to actually enter any text as the password, so I just try to type in a password anyway, but it doesn’t seem to work.

Sorry, I’m such a newb. Am I missing something?

:wink:

display dialog "type something" default answer "" with hidden answer

Yay! That worked! This place is SO educational! Thank you everyone! :slight_smile:

set myResult to display dialog "type your password" default answer "" with hidden answer

…doesn’t compile for me.

What am I missing?

No problem on 10.4.11 iMac.

with hidden answer was added in AppleScript 1.10 (i.e., Mac OS X 10.4).