---
title: Hookmark
description: Connect Hookmark to Octarine so Hookmark can link to the currently focused note.
---

Hookmark can link to Octarine notes through Octarine's [`octarine://`](/workflows/uri-scheme) 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:

```applescript
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.

## Fallback: copy a Markdown link

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

```markdown
[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:

```sh
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.

#### Quick Answers

### Can Hookmark link to Octarine notes?

Yes. Hookmark can use Octarine's `octarine://` URL scheme and `getCurrentNote` action to link to the focused note.

### What Octarine command works as a Hookmark fallback?

Use **Copy Octarine URL in Markdown** if your Hookmark workflow is clipboard-based.

### What should I check if Hookmark says no linkable item found?

Make sure Hookmark has a Get Address script for Octarine and that a note is focused in Octarine.
