macOS: accept .idml on the app icon when another app owns the type

When InDesign is installed it exports its own type for .idml, which
overrides the type DesignCraft imports, so the IDML entry in
CFBundleDocumentTypes no longer matches: Finder refuses the drop on the
app's icon and Open With leaves DesignCraft out (Dock drops still work).
Add a separate entry by extension, which matches whatever type the file
has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa
This commit is contained in:
Claude committed 2026-10-16 23:57:49 +00:00
1 parent c2609f921b
commit b09233ab58
1 file changed
+15
+15
View File
@@ -72,6 +72,21 @@
<key>LSItemContentTypes</key>
<array><string>ai.storyteller.designcraft.idml</string></array>
</dict>
<!-- The same, by extension. When another installed app (InDesign) exports its own type for
.idml, files get that type instead of the one imported below, so the entry above no
longer matches them: Finder then won't drop them on the app's icon, and Open With leaves
DesignCraft out. An extension entry matches whatever type the file has. It must be a
dict of its own: where LSItemContentTypes is present, the extension keys are ignored. -->
<dict>
<key>CFBundleTypeName</key>
<string>IDML Document (by extension)</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>CFBundleTypeExtensions</key>
<array><string>idml</string></array>
</dict>
</array>
<!-- DesignCraft's own format: a zip package, declared as a document rather than an archive so