# Save and load workspaces (with Keyboard Maestro and macOS)

**URL:** <https://forum.obsidian.md/t/save-and-load-workspaces-with-keyboard-maestro-and-macos/4610>\
**Category:** Workflows & Templates\
**Created:** [August 20, 2020, 10:59pm UTC](https://forum.obsidian.md/t/save-and-load-workspaces-with-keyboard-maestro-and-macos/4610 "2020-08-20T22:59:13Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [August 20, 2020, 10:59pm UTC](https://forum.obsidian.md/t/save-and-load-workspaces-with-keyboard-maestro-and-macos/4610/1 "2020-08-20T22:59:13Z")

</div>

Here’s three macros for Keyboard Maestro on macOS. As ever, this is provided as-is, but I’ve tried to make it easy to set up.

**Change the location of the vault in the yellow action on each macro before use.**

- [Save workspace](http://axle.design/files/_Save-workspace.kmmacros)
  - **Save Workspace** asks you to specify a name for the current layout, then stores a copy of `.obsidian/workspace` in your Obsidian Vault in a new `workspaces` folder.

- [Open workspace](http://axle.design/files/_Open-workspace.kmmacros)
  - **Open Workspace** asks you to choose one of the workspaces you’ve saved. It looks up the workspace file saved as per above and replaces the current workspace file with that one, then reloads Obsidian. As a result, you get your saved set of notes and panes opened again.

- [Delete workspace](http://axle.design/files/_Delete-workspace.kmmacros)
  - **Delete Workspace** deletes the selected saved workspace.

---

<div class="post-metadata">

**Author:** ![saggers](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@saggers](https://forum.obsidian.md/u/saggers)\
**Post date:** [December 13, 2020, 9:24am UTC](https://forum.obsidian.md/t/save-and-load-workspaces-with-keyboard-maestro-and-macos/4610/2 "2020-12-13T09:24:40Z")

</div>

Please could you give me a head start. I cannot work out how to put this into Keyboard Maestro.

---

<div class="post-metadata">

**Author:** ![sandrop](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sandrop/32/7001_2.png) [@sandrop](https://forum.obsidian.md/u/sandrop)\
**Post date:** [December 13, 2020, 8:03pm UTC](https://forum.obsidian.md/t/save-and-load-workspaces-with-keyboard-maestro-and-macos/4610/3 "2020-12-13T20:03:24Z")

</div>

If you have KM installed then you can open the downloaded .kmmacros files and they should automatically install to KM. Mine landed in an obsidian folder

---

<div class="post-metadata">

**Author:** ![saggers](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@saggers](https://forum.obsidian.md/u/saggers)\
**Post date:** [December 14, 2020, 7:24pm UTC](https://forum.obsidian.md/t/save-and-load-workspaces-with-keyboard-maestro-and-macos/4610/4 "2020-12-14T19:24:29Z")

</div>

Thanks. So I did that and it worked like magic. Now do I just link a key combination to each?

---

<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:** [December 27, 2020, 1:49am UTC](https://forum.obsidian.md/t/save-and-load-workspaces-with-keyboard-maestro-and-macos/4610/5 "2020-12-27T01:49:40Z")

</div>

That’s the idea. Note, though, that Obsidian now has built-in workspaces. You might not need these KM macros anymore!
