Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

.mht file showing exec icon on Mac

  • Нет ответов
  • 2 имеют эту проблему
  • 7 просмотров
more options

I am working on a Mac (Yosemite, OS X 10.10.5) and I have several mht files which I created on Firefox by selecting File - Save as MHT. I can open the files in Firefox, but the Firefox icon doesn't appear on them. I have already associated the files with Firefox -it opens them by default- but the problem persists. What I am looking for is a way to make macOS recognize mht as a file extension. For eg, when a pdf file is renamed in macOS, only the name of the file is highlighted, but not the extension -- this does not happen with mht files and this is what I would like to be able to do.

I tried browsing to Firefox -> Show Package Contents -> Contents and since it was missing, I added mht to the Info.plist using TextEdit:

<dict>

       <key>CFBundleTypeExtensions</key>
       <array>
           <string>html</string>
           <string>htm</string>
           <string>shtml</string>
           <string>xht</string>
           <string>xhtml</string>
           **<string>mht</string>**
       </array>
       <key>CFBundleTypeIconFile</key>
       <string>document.icns</string>
       <key>CFBundleTypeName</key>
       <string>HTML Document</string>
       <key>CFBundleTypeOSTypes</key>
       <array>
           <string>HTML</string>
       </array>
       <key>CFBundleTypeRole</key>
       <string>Viewer</string>
   </dict>

The mht extension is still not recognized. Is there any way to make macOS recognize the mht extension and associate it to the Firefox icon?

Any help would be greatly appreciated!

I am working on a Mac (Yosemite, OS X 10.10.5) and I have several mht files which I created on Firefox by selecting File - Save as MHT. I can open the files in Firefox, but the Firefox icon doesn't appear on them. I have already associated the files with Firefox -it opens them by default- but the problem persists. What I am looking for is a way to make macOS recognize mht as a file extension. For eg, when a pdf file is renamed in macOS, only the name of the file is highlighted, but not the extension -- this does not happen with mht files and this is what I would like to be able to do. I tried browsing to Firefox -> Show Package Contents -> Contents and since it was missing, I added mht to the Info.plist using TextEdit: <dict> <key>CFBundleTypeExtensions</key> <array> <string>html</string> <string>htm</string> <string>shtml</string> <string>xht</string> <string>xhtml</string> **<string>mht</string>** </array> <key>CFBundleTypeIconFile</key> <string>document.icns</string> <key>CFBundleTypeName</key> <string>HTML Document</string> <key>CFBundleTypeOSTypes</key> <array> <string>HTML</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> </dict> The mht extension is still not recognized. Is there any way to make macOS recognize the mht extension and associate it to the Firefox icon? Any help would be greatly appreciated!