← All posts

Log anything to your daily note — from Shortcuts, Raycast, or the terminal

The best daily log is the one that fills itself. Since version 1.1, Hejour exposes a hejour:// URL scheme, which means anything on your Mac that can open a URL — Apple Shortcuts, Raycast, Alfred, a git hook, a cron job — can write into today's note or jump to any day. Three URLs cover everything:

hejour://today                     open Hejour on Today
hejour://append?text=Call%20mom    append a line to Today (no focus steal)
hejour://day?date=2026-07-21       open a specific day

append is the interesting one: it adds the line to the end of Today without bringing the app forward, so it's safe to fire from scripts. Lines starting with [] become real checkboxes, and - becomes a bullet — same rules as typing.

From the terminal

# log a deploy
open "hejour://append?text=deployed%20api%20v2.4%20to%20prod"

# log with a checkbox
open "hejour://append?text=%5B%5D%20review%20the%20incident%20notes"

URL-encoding by hand gets old; a tiny shell function fixes it:

hej() {
  open "hejour://append?text=$(python3 -c 'import sys,urllib.parse; print(urllib.parse.quote(" ".join(sys.argv[1:])))' "$@")"
}

# now:
hej "11:40 finished the migration"
hej "[] follow up with Deniz"

From Apple Shortcuts

  1. New shortcut → add Ask for Input (“What happened?”).
  2. Add URL Encode on the input.
  3. Add Open URL: hejour://append?text=[Encoded Text].

Pin it to the menu bar or give it a keyboard shortcut, and you have system-wide capture that also works from iPhone-triggered automations targeting your Mac. (For plain keyboard capture, Hejour's built-in ⇧⌘M does this natively.)

From Raycast or Alfred

In Raycast, create a Script Command with open "hejour://append?text=..." and an argument placeholder — type hej deployed the fix, hit return, done. Alfred works the same way with a “Run Script” workflow behind a keyword.

Ideas people actually use

  • Git post-commit hook — every commit message lands in your work log automatically.
  • Meeting-end Shortcut — one tap appends [] send notes from the 3pm call.
  • Pomodoro logging — your timer app fires the URL when a session ends.
  • CI notifications — a failed nightly build writes itself into tomorrow's page via hejour://day.

Everything above works on the free tier — download Hejour and the URL scheme is live after the first launch.