title: Get window title and Application/Process name of all the visible application window processes in mac
body: <p>Is there any way we can get the window title and its corresponding process name in mac.</p>
  
  <p>Currently, I am only able to get the window title using AppleScript:</p>
  
  <pre><code>tell application "System Events" to get the title of every window of (every process whose visible is true)
  </code></pre>
  
  <p>If we can do this via any electron API/node module that would also be great.</p>
  
  <p>Basically I just want to get a list of active window title along with their process id/name</p>