# Open specific vault from Finder

**URL:** <https://forum.obsidian.md/t/open-specific-vault-from-finder/7922>\
**Category:** Feature archive\
**Created:** [October 31, 2020, 7:29am UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922 "2020-10-31T07:29:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![borisanthony](https://forum.obsidian.md/user_avatar/forum.obsidian.md/borisanthony/32/2709_2.png) [@borisanthony](https://forum.obsidian.md/u/borisanthony)\
**Post date:** [October 31, 2020, 7:29am UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922/1 "2020-10-31T07:29:03Z")

</div>

I have several vaults.

I want to open a specific vault (via Finder/etc) without having to

- open Obsidian,
- select “Open another vault”
- select vault to open

(I also run several markdown editors and Obsidian is not, and will likely never be, my default markdown editor.)

Perhaps the simplest solution from the product side is a way to save vault shortcuts to the Finder.

I am currently trying to figure out a way fake this with shell script, AppleScript, anything… but am bumping into issues (Currently, only way to send commands to Obsidian from “outside” seems to be URL Schema, and obsidian://vault/VaultName is acting funky. Will try to file a bug report.)

---

<div class="post-metadata">

**Author:** ![ryanjamurphy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryanjamurphy/32/334_2.png) [@ryanjamurphy](https://forum.obsidian.md/u/ryanjamurphy)\
**Post date:** [October 31, 2020, 4:56pm UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922/2 "2020-10-31T16:56:51Z")

</div>

Related, perhaps: [Obsidian as default app .md viewer](https://forum.obsidian.md/t/obsidian-as-default-app-md-viewer/314/9)

---

<div class="post-metadata">

**Author:** ![borisanthony](https://forum.obsidian.md/user_avatar/forum.obsidian.md/borisanthony/32/2709_2.png) [@borisanthony](https://forum.obsidian.md/u/borisanthony)\
**Post date:** [October 31, 2020, 8:18pm UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922/3 "2020-10-31T20:18:31Z")

</div>

Not quite. 🙂  
I want to open a Vault, not a File/Note.  
And as stated I do not want to set Obsidian as my default markdown app.

---

<div class="post-metadata">

**Author:** ![rigmarole](https://forum.obsidian.md/user_avatar/forum.obsidian.md/rigmarole/32/29973_2.png) [@rigmarole](https://forum.obsidian.md/u/rigmarole)\
**Post date:** [October 31, 2020, 8:31pm UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922/4 "2020-10-31T20:31:00Z")

</div>

In MacOS you can save a URL as a file. Then if you launch it in Finder, it will open the vault/note. So you could create links to each of your vaults.

I just dragged an Obsidian url from Firefox onto Finder. I don’t know if there other ways. This is the contents of MyFancyVault.inetloc so you could just make the file in a text editor.

My vault name is “ObsidianNotes”

```auto
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>URL</key>
	<string>obsidian://open?vault=ObsidianNotes</string>
</dict>
</plist>

```

EDIT: There does seem to be a bug though… If Obsidian is closed, using the url, my last-opened vault opens. If Obsidian is already open, THEN it opens whatever url I clicked on. Which is also the case if you simply click on a link.

[I filed a bug here.](https://forum.obsidian.md/t/when-obsidian-is-closed-urls-dont-fully-work/7958)

---

<div class="post-metadata">

**Author:** ![borisanthony](https://forum.obsidian.md/user_avatar/forum.obsidian.md/borisanthony/32/2709_2.png) [@borisanthony](https://forum.obsidian.md/u/borisanthony)\
**Post date:** [November 1, 2020, 8:58am UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922/5 "2020-11-01T08:58:18Z")

</div>

Thanks yes I filed the same bug yesterday here:

> [@MAC: Opening specific Obsidian vault other than last open when app is not already open fails](https://forum.obsidian.md/t/mac-opening-specific-obsidian-vault-other-than-last-open-when-app-is-not-already-open-fails/7927):
>
> Steps to reproduce Have multiple Vaults. (“test1”, “test2”, “test3”) Open “test1”. Quit Obsidian. Execute obsidian://vault/test2 or any obsidian://open… (make a test.html file somewhere with a link, open it in web browser and click link). Expected result Executing any obsidian://open command (including shorthands) when Obsidian is not already open launches Obsidian and opens the requested Vault and/or File in that Vault. Actual result Executing any obsidian://open command (including shorthand…

and @WhiteNoise Split/Merged yours and mine.

It seems to be a limitation of Electron apps. So the question is:

- is it solvable? i.e.: is it something that can be filed as a bug on Electron and reasonably expect a fix?  
or
- is the only solution (for now, yes) to keep Obsidian open?

**BTW:**  
I have found a cringe-y workaround using AppleScript: Create an AppleScript “app” for each Vault, which first tells Obsidian to Launch and then tells Obsidian to open the Vault you want.  
If I go this way I’ll share the AppleScript code here. 👍🏼

---

<div class="post-metadata">

**Author:** ![borisanthony](https://forum.obsidian.md/user_avatar/forum.obsidian.md/borisanthony/32/2709_2.png) [@borisanthony](https://forum.obsidian.md/u/borisanthony)\
**Post date:** [November 1, 2020, 12:00pm UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922/6 "2020-11-01T12:00:53Z")

</div>

Ok so yes, the following AppleScipt works.  
First it launches (“Activate”) Obsidian (which will open whatever previous vault was the last to close I believe).  
Then it instructs Obsidian to open whatever obsidian:// URL you pass it (this is actually VERY interesting in itself).

The AppleScript code:

```auto
tell application "Obsidian" to activate
tell application "Obsidian" to open location "obsidian://vault/Vault"

```

I imagine this works with any URL Schema URI. Which is _very_ interesting (since for example you can execute AppleScript via Terminal (and thus shell script, Python, etc…) using “osascript”.

👍🏼

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 13, 2022, 2:33pm UTC](https://forum.obsidian.md/t/open-specific-vault-from-finder/7922/7 "2022-10-13T14:33:49Z")

</div>

Archived on October 13, 2022, 2:33pm UTC


