Hello!
I’m attempting to have users be prompted for their passwords and then pass that variable to a unix script and if they use specific characters, the unix script fails. I’m wondering if there is a way to pass the quoted form of the user input to the unix script. Right now, the line that prompts them for their password is this:
userPass=“$(osascript -e 'Tell application “System Events” to display dialog “Please enter your password:” default answer ‘’” with title “Login Password with text button [“Ok”} default button with hidden answer’ -e ‘text returned of result’)”
Thank you for any help!
Joy