Q: No C experience, using Xcode AppleScriptObjC Trying to get variable result from bash terminal and store in Xcode property variable.  No C experience, Xcode project is in AppleScript.

A: You can get the software version directly in AppleScript. The equivalent to your shell script is 
set minor to (system attribute "sys2") as text

