Extract an icon for a given file or file type in macosx