I need users to be able to pass their username and password through Applescript to terminal. In a nutshell, I need to do this:
Set Variable [$userName; Value: asks for user input]
Set Variable [$userPassword; Value: asks for user input]
Later in script...
Perform AppleScript ["do shell script" & "echo " & Quote ( $userPassword) & "|" command -u" & Quote ( $userName ) & "--argument --noconsole"]
My question is, how do I get a popup window to ask the user to enter the commands and is it possible to get a pop up window to gather both variables at once?