Skip to main content
Question

Extension Attribute to Report When an Application was Lasted Opened

  • December 3, 2015
  • 27 replies
  • 217 views

Show first post

27 replies

mpermann
Forum|alt.badge.img+22
  • Valued Contributor
  • April 4, 2016

@brock.walters when the EA encounters an application that hasn't been lunched it's returning (null) for me on 10.11.4. Are you getting a different result? Should the if statement be

if [ "$usedate" == "(null)" ]

instead of what is listed above?


Forum|alt.badge.img+12

what I believe is happening there is 1 of 2 things: either the application has never been opened or the Spotlight database (that's what's being examined by mdls command) may have been deleted or not updated. Your mileage may vary. :)

As per usual the ever-expert @mm2270 has a previous post on this very topic:

https://jamfnation.jamfsoftware.com/featureRequest.html?id=3361

Hope that helps!