How do I input the response from an AppleScript dialogue into a shell script?

David Hallengren September 21, 2012
Pinterest Stumbleupon Whatsapp

I am trying to use the textual response from an AppleScript dialogue in a shell script command within Applescript. My script at the moment looks like this, where NAME is the response from the dialogue:

set dd to display dialog “What is your name?” default answer ” ”
do shell script “say Welcome NAME”

 

Ads by Google