Mac Bundles fail System Requirements for Application Version

  • 7010821
  • 24-Sep-2012
  • 25-Sep-2012

Environment

Novell ZENworks Configuration Management 11.2

Situation

Using bundle system requirements based on installed application version always fails on Macintosh OSx.
 
Example setting system requirement for "Calculator.app", from zmd-messages.log:
 
[ExternalCmd] [Executed command (/bin/sh, -c, system_profiler SPApplicationsDataType | grep -A4 "Calculator.app":|grep Version|awk '{print $2}') : exit value = 0, error = none.] [] []
[ZenworksAgent] [109] [MacAppVersionReqHandler] [Calculator.app does not exist] [] []

Resolution

In the system requirements, use the application name (short).  For example, do not use "Calculator.app".  Use "Calculator".