title: OS X Dock API? Retrieve OS X active application's icon with badges and other modifications
body: <p>Is there an API for retrieving the icons of the currently open apps on Mac OS X? I am trying to retrieve all the icons of the active applications along with any badges on top of the application (i.e. number of new messages in mail, or current download rate in Transmission). Is there some sort of Dock API?</p>
  
  <p>The only mention of an OSX API for retrieving information about currently active applications I have been able to find is the <a href="https://web.archive.org/web/20110328011519/http://developer.apple.com/library/mac/documentation/Carbon/Reference/Process_Manager/Reference/reference.html" rel="nofollow noreferrer">Process Manager API</a>, which does not mention the ability to poll the dock or retrieve icon data.</p>
  
  <p>As far as application icons, the only documentation I have found is related to NSWorkspace: <a href="https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Workspace/introduction.html" rel="nofollow noreferrer">https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Workspace/introduction.html</a></p>