Should be something like this
#!/bin/bash
VERSION="$(defaults read "/Applications/Adobe Photoshop CS5/Plug-Ins/File Formats/Pixar.plugin/Contents/Resources/Info 2>/dev/null)"
printf "<result>%s</result>
" "${VERSION:="0"}"
EDIT , but I see your asking if this is a framework , that should be in something like ./Versions/Current/Resources/Info.plist
As long as the path is consistent it should not be an issue.
defaults can read this data without the need to parse it , just note that I am reading Info not Info.plist which is a pucurliarity of pre 10.7 defaults syntax and I am trapping the variable with :="0" , which is to say if this value does not exist be 0