strngr12

Passing user entered variables to Applescript

Discussion created by strngr12 on Jul 18, 2012
Latest reply on Jul 19, 2012 by fmp

Hello,

 

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?

 

Thanks!

 

-Dan

Outcomes