notes from /dev/null

by Charles Choi 최민수


02 Jul 2025

Capturing an Org note via macOS Shortcuts

With a new update of Scrim v1.1.0 on the App Store, it seems an opportune time to show a nice macOS Shortcut integration with it.

The use case is this: You're on your Mac, working on something else other than Emacs (it happens!) and you want to make a quick note in an Org file without having to context switch to Emacs.

You can accomplish this with a macOS Shortcut. Shortcuts is an Apple tool that lets you orchestrate different apps to achieve a custom workflow.

Shown below is the shortcut named “Make Note Entry” to accomplish the above use case. It will:

  1. Prompt the user to enter text.
  2. Run a Python script on that text and construct an Org protocol capture request with it using the template named "note".
  3. Issue (open) the Org protocol request.

If the shortcut is configured so that “Pin in Menu Bar” is turned on, you will see some variant of its entry in the Shortcuts bar icon menu.

Running the shortcut “Make Note Entry” will prompt you with a dialog where you can enter your note:

Pressing the “Done” button will result in the entry being inserted at the top of the file “~/org/notes.org” as shown below. Note however that Emacs is not raised with this shortcut. The screenshot below is only shown to illustrate that the entry is there.

Installation

Want to try this out? Here’s what to do:

1. Understand Org protocol

If you don’t already then read up about it at org-protocol.el – Trigger actions in Emacs via a custom URL scheme.

2. Have Scrim installed and configured

Learn more about Scrim at http://yummymelon.com/scrim.

3. Add the capture template “note”

On the Emacs side, add the following template entry to org-capture-templates. This template named “note” defines an entry with a heading that has an inactive Org timestamp (“%U”) and the body containing the entered text (“%i”). The destination of this note entry is in the file “~/org/notes.org”

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
("note"
 "Note (Org Protocol)"
 entry
 (file "~/org/notes.org")
 (function (lambda ()
             (string-join
              '("* %U"
                "%i")
              "\n")))
 :prepend t
 :immediate-finish t
 :empty-lines-after 1)

Observe that this template uses the keys :immediate-finish to not make the entry interactive and :prepend to insert the entry at the top of the file.

4. Add the Shortcut “Make Note Entry”

Download the shortcut file Make Note Entry.shortcut and double-click on it to install. It should now be in your Shortcuts collection.

5. Run “Make Note Entry”

On the first run of this shortcut, you will be prompted twice to give it permissions: 1) to run the shortcut and 2) to open Scrim. Inspect that its contents correspond with its screenshot above and grant them.

Closing Thoughts

Readers are invited to take these ideas and customize them for their own purposes.

emacs   org mode   macos

Past Articles

30
JUN
2025

Take Two: Eshell

Don’t mistake Eshell as a drop-in replacement for a shell. It is so much more than that.

read more
24
JUN
2025

Announcing Casual Man & Help

Announcing Casual Man & Help, now available in Casual v2.6.0.

read more
2
JUN
2025

Announcing Casual Timezone

Always know what the time is, anywhere. Announcing Casual Timezone.

read more
8
MAY
2025

Opening the Emacs Initialization File, or First Impressions Matter

Opening the Emacs initialization file for new users is harder than it needs to be.

read more
28
APR
2025

Announcing Scrim - An Org Protocol Proxy for Emacs on macOS

Announcing Scrim, an Org Protocol proxy for Emacs on macOS.

read more
25
APR
2025

Sorting Strings in a Line in Emacs

Need to sort strings in a line? Emacs sort-regexp-fields to the rescue.

read more
14
APR
2025

Making an App, Looking for Beta Testers

Scrim is a macOS utility I've written to act as a proxy for Org Protocol requests. It is in BETA test and I’m looking for testers.

read more
23
MAR
2025

NFDN Finally Supporting OS Appearance Changes

Better late than never. This blog now supports OS appearance changes.

read more
13
MAR
2025

Announcing Casual Make

Announcing Casual Make, an interface for editing Makefiles.

read more

Page 1 / 15   >

 

AboutMastodonBlueskyGitHub

Feeds & Tags
Get Scrim for macOSGet Captee for macOS

Powered by Pelican