title: Replacing the deprecated NSWorkspace launchedApplications function?
body: <p>In the documentation of <code>NSWorkspace</code> for <code>launchedApplications</code> function it says:
  "It is strongly suggested that you use the <code>NSWorkspace runningApplications</code> method and the <code>NSRunningApplication</code> class to retrieve this information in applications targeted for Mac OS X v10.6 and later."</p>
  
  <p>I'm looking for a way to retrive only the "real" applications that have a user interface, ignoring all the background processes like <code>loginwindow</code> or <code>Mac_SwapperDemon</code> etc.</p>
  
  <p>This was automatically done in calls to <code>launchedApplications</code> and I can't find a way to do it with <code>runningApplications</code>.</p>
  
  <p>Any Idea?</p>