title: How to get the icon of the associated app of a given file on macOS programmatically?
body: <p>How to get the icon of the associated app of a given file on macOS programmatically? I would like to show the icons that are used by Finder for each file. Either shell or Python scripts should be fine.</p>
  
  <p>This is the macOS version of <a href="https://stackoverflow.com/questions/9203251/how-can-i-get-an-icon-or-thumbnail-for-a-specific-file">this question</a></p>