Arithmetic From Dialogue, Applescript
I need to add arithmetic from dialogue boxes in AppleScript. I'm pretty new, so bear with me.
I currently have this, but it doesn't work.
set one to (display dialog "Protons" buttons {"OK"} default button "OK" default answer "#")
set two to (display dialog "Protons" buttons {"OK"} default button "OK" default answer "#")
set answer to one + two
display dialog answer
MacBook Pro 15", macOS 10.14