My organization has a need to track which workstations run "X" version of java 1.6. Certain web applications that are legacy and themselves don't leave anything on the local system we could use a means to pass relevance against. So I've looked at using the application usage tracking that's set in the computer properties and tied to an analysis, but I'm looking for a way to write the property relevance that would work in the way I describe. These workstations would potentially run java version 1.6.x, and 1.7.x.
This is what I've come up with thus far but it still doesn't work quite right. Does nyone have any ideas?
If ((exists running application "java.exe" and (version of it) of running application "java.exe" as string contains "6.0")) then (total run count of it, first start time of it, last time seen of it, total duration of it) of application usage summaries "java.exe" as string else "Java6 not run post tracking date."