0

我想启用“打开方式...”功能以.html通过电子邮件发送附件。

我已经修改Info.plist了如下文件,对于.odt文件附件,它工作正常。

<key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>XDXF Document</string>
            <key>LSHandlerRank</key>
            <string>Owner</string>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>com.mouritech.odt</string>
            </array>
        </dict>
    </array>
    <key>UTExportedTypeDeclarations</key>
    <array>
        <dict>
            <key>UTTypeDescription</key>
            <string>html - XML Dictionary eXchange Format</string>
            <key>UTTypeConformsTo</key>
            <array>
                <string>public.text</string>
            </array>
            <key>UTTypeIdentifier</key>
            <string>com.mouritech.odt</string>
            <key>UTTypeTagSpecification</key>
            <dict>
                <key>public.filename-extension</key>
                <string>odt</string>
                <key>public.mime-type</key>
                <string>text/html</string>
            </dict>
        </dict>
    </array> 

当我用 替换odthtml,它没有显示“在...中打开”功能,默认情况下它是打开的。

4

0 回答 0