# A Customizable Alfred Workflow Template for Quick Captures

**URL:** <https://forum.obsidian.md/t/a-customizable-alfred-workflow-template-for-quick-captures/34687>\
**Category:** Workflows & Templates\
**Created:** [March 26, 2022, 3:49am UTC](https://forum.obsidian.md/t/a-customizable-alfred-workflow-template-for-quick-captures/34687 "2022-03-26T03:49:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaosarium](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/c/c37758/32.png) [@chaosarium](https://forum.obsidian.md/u/chaosarium)\
**Post date:** [March 26, 2022, 3:49am UTC](https://forum.obsidian.md/t/a-customizable-alfred-workflow-template-for-quick-captures/34687/1 "2022-03-26T03:49:30Z")

</div>

Hi!

This post showcases another Alfred workflow for Obsidian that fits my need.

Automation helps to reduce friction in workflows, and Alfred provides a sandbox environment for building highly-customisable automations. There are already several workflows out there like [Obsidian Utilities](https://forum.obsidian.md/t/alfred-obsidian-utilities/8817) and [Obsidian Alfred](https://github.com/hauselin/obsidian-alfred), but I wanted to create a simpler one just for quick capturing.

GitHub repo: [Obsidian Alfred Workflow Template](https://github.com/chaosarium/Obsidian-Alfred-Workflow).

Screenshot:

 ![Pasted image 20220318094844](https://forum.obsidian.md/uploads/default/original/3X/4/d/4d974af30a732aa02b96992b55b552ed9e78d547.jpeg)

## Features

- `o` to open your vault
- `o` + `⌘⏎` to open vault in VSCode (or your preferred editor)
- Any number of capture actions that appends something to a note, with a customisable template. For example:
  - `oi` to append an idea to an idea inbox and adds a timestamp
  - `os` to append an item to a shopping list and adds a `- []` checkbox in front of it
  - … (other actions you might need)

- Any number of capture actions that appends something to a heading in a note, with a customisable template. For example:
  - `oj` to add a journal entry with a timestamp and the tag `#journal` under the `### Journal` heading in today’s note
  - `ot` to add a task under the `### Inbox` heading in today’s note
  - … (other actions you might need)

## How it works

> **How it works**
>
> Opening the vault is pretty straightforward with Alfred’s built-in Launch Apps and Open File actions.
> 
> Append is also done using Alfred’s built-in Write Text File action.
> 
> The append to heading feature is based on [obsidian-utilities](https://github.com/macedotavares/obsidian-utilities) but with a script modified to be more customisable. Basically, the workflow reads a file, pass the text content to a python script that adds an insertion under a particular heading using regular expression, and write the new content to file.

## Setup instructions

See [instructions on GitHub](https://github.com/chaosarium/Obsidian-Alfred-Workflow#how-to-use)

Cheers!
