Determine most recently launched app?

I was hoping to write some automation around the simctl utility and I'm wondering if anyone knows how to deteremine which app has been launched most recently on a simulator?


I've tried inspecting the modification timestamps on files and directories with varying degrees of success. Maybe there's a SQLite store or plist for the Springboard that I could query? Any advice would be greatly welcomed.