Leave Obsidian in background when making URI call?

I’m using obsidian-advance-uri to add text and todos into my notes from Alfred (on a Mac). Any call I make with Obsidian in the background makes it the active app—which interrupts what I’m doing. Is there a way to leave Obsidian in the background when making a URI call from outside Obsidian?

So it turns out that the calling application can ask the target application to stay in the background. Using bash (on Mac):

open --background "obsidian://advanced-uri?vault=Main&filename=test-file&data=test-data"

In Alfred this must be put in a “Run Script” action as the more visible “Open URL” action takes no arguments.

1 Like