OctarineOctarine Docs
Desktop / Workflows /

Hookmark

Connect Hookmark to Octarine so Hookmark can link to the currently focused note.

Hookmark can link to Octarine notes through Octarine's octarine:// URL scheme. Octarine exposes a getCurrentNote action that returns the current note title and an Octarine URL through Hookmark's x-callback-url flow.

Add the Hookmark script

Open Hookmark's script editor and add a Get Address script for Octarine.

Use this script:

set callbackURL to "hook://x-callback-url/setCurrentNode%3FrequestID%3D$requestID"
set callbackURLError to "hook://x-callback-url/setCurrentNodeError"

set myURL to "octarine://getCurrentNote?x-success=" & callbackURL & "&x-error=" & callbackURLError
set myScript to "open " & quoted form of myURL

do shell script myScript
return callbackURL

After saving the script, focus an open note in Octarine and use Hookmark's shortcut. Hookmark should show the current note title and let you copy or hook the note.

If you prefer a clipboard-based workflow, use Copy Octarine URL in Markdown from Octarine's command menu. This copies a link like:

[Note title](octarine://open?path=Notes%2FExample.md&workspace=Personal)

You can assign this Octarine command to a keyboard shortcut and call it from Hookmark if your Hookmark setup relies on copying a Markdown link.

Troubleshooting

If Hookmark says No linkable item found, it usually means Hookmark is not running an Octarine Get Address script yet. Octarine can still be checked directly from Terminal:

open 'octarine://getCurrentNote?x-success=http%3A%2F%2F127.0.0.1%3A9999%2Fcallback'

That command needs a local callback listener to receive the response, but it is useful when testing whether Octarine is handling the URL scheme.