MuseScore changes kMDItemContentTypeTree and kMDItemContentType of markdown files during installation (Mac)

• May 5, 2020 - 21:24
Reported version
3.4
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Hello!

During installation, MuseScore silently associates .md files as MuseData files and changes kMDItemContentType and kMDItemContentTypeTree properties of these files. This changes the 'kind' of markdown files - they are no more files of a 'text' kind: for example they are not included in search results if searching by 'Kind = text'.

Here is the output of mdls util

valerykondakoff@iMac-Valery ~ % mdls /Users/valerykondakoff/Downloads/test.md
_kMDItemDisplayNameWithExtensions = "test.md"
kMDItemContentCreationDate = 2020-05-05 17:44:51 +0000
kMDItemContentCreationDate_Ranking = 2020-05-05 00:00:00 +0000
kMDItemContentModificationDate = 2020-05-05 17:55:53 +0000
kMDItemContentModificationDate_Ranking = 2020-05-05 00:00:00 +0000
kMDItemContentType = "dyn.ah62d4rv4ge8043a"
kMDItemContentTypeTree = (
"public.item",
"dyn.ah62d4rv4ge8043a",
"public.data"
)
kMDItemDateAdded = 2020-05-05 17:44:51 +0000
kMDItemDateAdded_Ranking = 2020-05-05 00:00:00 +0000
kMDItemDisplayName = "test.md"
kMDItemDocumentIdentifier = 0
kMDItemFSContentChangeDate = 2020-05-05 17:55:53 +0000
kMDItemFSCreationDate = 2020-05-05 17:44:51 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "test.md"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 4
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2020-05-05 00:00:00 +0000
kMDItemKind = "MuseData File"
kMDItemLastUsedDate = 2020-05-05 17:55:47 +0000
kMDItemLastUsedDate_Ranking = 2020-05-05 00:00:00 +0000
kMDItemLogicalSize = 4
kMDItemPhysicalSize = 4096
kMDItemUseCount = 2
kMDItemUsedDates = (
"2020-05-04 21:00:00 +0000"
)

While content type for markdown files should be:

kMDItemContentType = "net.daringfireball.markdown"
kMDItemContentTypeTree = (
"net.daringfireball.markdown",
"public.item",
"public.text",
"public.data",
"public.content",
"net.daringfireball.markdown",
"public.plain-text"
)

Can we, please, investigate this?
MuseScore 3.4.2, macOS Catalina 10.15.4

Attachment Size
Скриншот 2020-05-05 21.11.37.png 288.04 KB

Comments