Have Obsidian be the handler of .md files / Add ability to use Obsidian as a markdown editor on files outside vault (file association)

You sir, are the grand master! :raised_hands:
Works like a charm and I truly appreciate you sharing this.
I don’t know if something like this could be used by the developers of Obsidian to workaround the issues some people mentioned here. I’m not a developer myself, so whatever others were trying to explain on why Obsidian can’t open the .md files, goes over my head 100%.

Anyway, just wanted to thank you for sharing this :muscle:

The .md files now have a different icon based on the MarkdownHandler.app
image

I was able to change this by changing the .icns file inside the MarkdownHandler.app (Right click > Show Package Contents > Contents > Resources > AutomatorApplet.icns).
I delete that file and copied the one inside Obsidian.app and put it in that same Resources folder.
I kept the name “AutomatorApplet.icns” just in case, because I don’t know if that would make a difference or not.
And now all my files open using your script, and have the Obsidian icon:
image

image

:slight_smile:

3 Likes