title: Programmatically check if a process is running on Mac
body: <p>Is there any Carbon/Cocoa/C API available on Macs that I can use to enumerate processes? I'm looking for something like <code>EnumProcesses</code> on Windows.</p>
  
  <p>My goal is to check from code whether a process is running (by name).</p>
  
  <p>Thanks!</p>