搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

.mht file showing exec icon on Mac

  • 無回覆
  • 2 有這個問題
  • 4 次檢視
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!