I've found a function here to get all the running processes How to get information about free memory and running processes in an App Store approved app? (Yes, there is one!)
but obviously there's a lot of system process.
Is There a way to get the running processes that the user launched?