Replace variable with answer in Applescript
Hello,
I was wondering whether it is possible to replace (x or y) with an answer that is recieved via dialog box.
I have a command: [sudo ifconfig en1 ether (x)] X=Mac Address
I know that the script would look like
tell application "Terminal"
do script "sudo ifconfig en1 ether (x)"
activate
end tell
X changes every time
how can I change X with a dialog box?
Thanks
OS X Mavericks (10.9.2)