It looks like we should have come back and posted here earlier…
In version 1.4, we added the SetLogging command to address this need. So, for example, you could write your own TypeUnLogged command, like this:
-- this is my TypeUnLogged command script
put loggingIsOn() into initialLoggingState
SetLogging initialLoggingState -- restore it to what it was
The code above will keep the password out of the log file, but it will still be visible in your script where you call the command, like this:
To avoid this, your script might read the password from a file:
put line 1 of file "~/path/mySecretPasswordFile" into password
Or, your script could prompt for the password each time it is run:
ask password "Enter the Secret Password:"
I hope that helps! There are other ways you could hide a password, too, but these are probably the simplest.