Opening Obsidian URL Scheme from outside Obsidian?

Hi All - I read through the existing URL Scheme topic and am still a bit confused as to whether I can open a note in Obsidian directly from outside Obsidian and if so, how to do this.

My goal is to have the URL scheme included in a Keyboard Maestro Macro so that whether or not Obsidian is open, the macro triggers Obsidian to open a specific note.

I’ve tried: Open the open URL action and open file action in Keyboard Maestro but can’t seem to get it to work.

When I try to open the URL with the action I get an action failed message in KM with "open URL failed with invalid URL:

When I try to open the URL as a file I get an action failed message about a non-existent path

This is what the URL scheme looks like when I copy and pate it:


Any suggestions of how I can open the URL scheme as part of a Keyboard Maestro macro?

Thank you!

1 Like
  1. Where did you get that URL? From the obsidian menu?
  2. Have you tried pasting it in the web browser and opening it from there?

Sorry about the delayed response

I got the URL from the 3 dots in the same pane as the title of the note for “more options” and then selecting “copy Obsidian URL”

If I paste it in the web browser manually as you suggest and click enter, the browser asks if I want to open the page in Obsidian, which seems to work when I click enter - but when I put Open URL as an option in Keyboard Maestro I get an error message and when I put open a new tab in Safari with the URL pasted, it doesn’t open the URL unless I click enter manually.

The fact that web browsers have no trouble opening the URL seems to prove there’s nothing wrong with it. It must be something with the KM action, but I can’t help with that because I don’t use it. Sorry.

Maybe try looking at the KM docs and see if there’s some setting you’ve missed.

This is driving me mad. Pretty sure there is an issue with KM’s handling of special characters. This has been reported on their forum as well so hopefully we can get a solution soon.

Lofi workaround would be this:


Assuming ⌘O is set to Obsidian’s Open quick switcher this will activate Obsidian, open Quick switcher, paste the title of your note, and open it.

Won’t be as fast as calling a note directly.

This solution was horrible but I found a better way by launching the URL as a terminal command using the “Execute Shell Script” action in Keyboard Maestro:

Replace just OBSIDIAN NOTE URL with your note’s url. E.g.: open "obsidian://open?vault=_Notes&file=%E2%80%BA%20Init"