Hey man, this is AppleScript Studio,
unless plain AppleScript with its limited capabilities
you are completely free to create whatever you want e.g. a custom window with
one or two buttons and a secure text field
I trid that but i have loads of complex variables that don’t seem to be carried from a onClicked to a finishEditing so if i use a dialog i don’t need to exit the handler.
I will ask the folks in AppleScript OS X
using terms from application "Finder"
set myPassword to (text returned of (display dialog "Enter password..." default answer "" with hidden answer))
end using terms from
It really is best to create your own panel and use that instead, regardless of how much more work that requires of you.