title: How to get file paths for current open documents in a macOS project in Swift?
body: <p>I have a macOS project in Swift where I would like to get file paths for current open documents. How can this be achieved?</p>
  
  <p>EDIT: I mean the open documents of the app itself. Typically represented as windows or tabs.</p>
  
  <p>PS
  I check these questions but don't help:
  <a href="https://stackoverflow.com/questions/12723032/how-to-get-file-path-loading-documents-in-document-based-app">How to get file path? Loading documents in Document based app</a>
  <a href="https://stackoverflow.com/questions/5976152/cocoa-question-how-to-get-file-path-for-current-open-document-for-the-front-mos">Cocoa question: How to get file path for current open document for the front most application</a></p>