Mac: MuseScore assigned .md file extension to itself. Any way to change this back to markdown?
Hello!
After installing the latest available MuseScore (3.4.2) to Catalina 10.15.4, I noticed, that some of the apps, which are working with markdown files are giving an errors. It turns out, that during install MuseScore silently changed the .md file association from markdown to MuseData file.
Is there a way to revert this to default association?
Here is what I see in terminal after running mdls tool (see screenshot).
Attachment | Size |
---|---|
Скриншот 2020-05-05 21.11.37.png | 288.04 KB |
Comments
Didn't do it for me. My foobar.md file opened in XCode as markdown.
In reply to Didn't do it for me. My… by [DELETED] 1831606
The problem is not with choosing an application which opens .md-files. I can associate md-files with my preferred text editor as well. But MuseScore changed the kMDItemKind of .md files: instead of "Text file" it is now "MuseData File" - so it is not counted as a text file anymore.
Please, try to run 'mdls foobar.md' in Terminal. What is your kMDItemKind value?
Thanks!
In reply to The problem is not with… by Valery_Kondakoff
kMDItemFSSize = 7
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2020-05-05 00:00:00 +0000
kMDItemKind = "MultiMarkdown Text Document"
kMDItemLastUsedDate = 2020-05-05 18:36:29 +0000
kMDItemLastUsedDate_Ranking = 2020-05-05 00:00:00 +0000
kMDItemLogicalSize = 7
But I guess I installed the "MultiMarkdown" editor more recently than MuseScore 3.
In reply to kMDItemFSSize … by [DELETED] 1831606
Thank you. I reinstalled Visual Studio Code and now I see "Visual Studio Code document" as kMDItemKind for .md files, but the issue is still there: for example, md-files are not included in search result if I search files by 'Kind: text' criteria.
Any chance some of the devs to take a look at this issue?
In reply to Thank you. I reinstalled… by Valery_Kondakoff
Please report it in the issue tracker
In reply to Report it in the issue… by Jojo-Schmitz
Done!
In reply to Done! by Valery_Kondakoff
Thanks for #304972: MuseScore changes kMDItemContentTypeTree and kMDItemContentType of markdown files during installation (Mac)
In reply to Thanks for #304972:… by Jojo-Schmitz
If I may ask, what the diminished-seventh is a "musedata file"?
In reply to If I may ask, what the… by [DELETED] 1831606
Here is what I have found by googling: "MuseData is a format developed by Walter B. Hewlett beginning in 1983 as an early means of sharing music notation between software. It has since been eclipsed by MusicXML, but several thousand scores in this format are still available online."
https://musescore.org/en/handbook/2/file-formats#musedata
In reply to kMDItemFSSize … by [DELETED] 1831606
BTW, this 'truncated' mdls output means, that Spotlight indexes need to be rebuild. Here are the instructions: https://support.apple.com/en-us/HT201716 (if you like to see the full info).
In reply to BTW, this 'truncated' output… by Valery_Kondakoff
Why do you infer that it means that? I have never had to rebuild spotlight indices before.
In reply to Why do you infer that it… by [DELETED] 1831606
Because the mdls output is not full. I saw this yesterday. If you rebuild the Spotlight index you will see the full output. Something like this:
This is not necessary, though. JFYI!
In reply to Because the mdls output is… by Valery_Kondakoff
I excerpted the output for you. I, not spotlight, am the culprit.
In reply to I excerpted the output for… by [DELETED] 1831606
Ah, that's it! ;) So, no need to rebuild Spotlight index (this is harmless, though).
BTW, the most interesting part of mdls output is kMDItemContentType and kMDItemContentTypeTree. The system uses these two keys to choose what content kind of file it is: text, document, video etc.
In reply to Ah, that's it! ;) So, no… by Valery_Kondakoff
Yes, I discovered that (as well as the md- command line tools) yesterday, thanks to you.