Okay I am trying what I thought would not be difficult. I see many articles showing how to use shell variable in osascript what I want is the opposite. I want to move a osascript variable out to a shell script.
So lets say I have this.
osascript<<END
display dialog "Are you ready to begin the installer" buttons {"Yes", "No"}
set the answer to the button returned of the result
END
How do I get answer out of the osascript into my shell. I have tried the following
Result=$(/usr/bin/osascript -e 'display dialog "Are you ready to begin the installer" buttons {"Yes", "No"}')
echo “${Results}”
what is echoed back is ""
The assistance of the community is appreciated.