# No linkable item found in Apple Notes (under macOS 10.15 Catalina)

**URL:** https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883
**Category:** Bug Reports
**Created:** [October 14, 2019, 9:24pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883 "2019-10-14T21:24:13Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Jwheeles](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/jwheeles/32/406_2.png) [@Jwheeles](https://discourse.hookproductivity.com/u/Jwheeles)
#### Post date: [October 14, 2019, 9:24pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/1 "2019-10-14T21:24:13Z")

</div>

When invoking Hook while using Apple Notes I am getting the Hook window which says, “No linkable item found in Notes”.

Is this a new bug or has Hook never worked with Apple Notes? Please note that I just upgrade to Catalina.

Thanks,  
Jason

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 14, 2019, 9:37pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/2 "2019-10-14T21:37:17Z")

</div>

Hook does seem able to derive links here (from Notes.app selections) on 10.14.6 Mojave

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 14, 2019, 9:50pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/3 "2019-10-14T21:50:27Z")

</div>

I wonder if you have Accessibility checked for Hook.app in

`Sys Prefs > Security & Privacy > Privacy > Accessibility`

(or the equivalent System Preferences path if that has changed in Catalina)

(I think Notes may be one of the apps for which ‘Assistive Access’ is required to get at the UUID of a selected object)

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 14, 2019, 11:16pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/4 "2019-10-14T23:16:03Z")

</div>

There is something going on with Apple Notes in 10.15, but this fell through the cracks of my issue report management here. I will update the forum asap.

---

<div class="post-metadata">

### Author: ![Jwheeles](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/jwheeles/32/406_2.png) [@Jwheeles](https://discourse.hookproductivity.com/u/Jwheeles)
#### Post date: [October 15, 2019, 7:32am UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/5 "2019-10-15T07:32:22Z")

</div>

Thanks Luc, looking forward to your update!

---

<div class="post-metadata">

### Author: ![quorm](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/quorm/32/40_2.png) [@quorm](https://discourse.hookproductivity.com/u/quorm)
#### Post date: [October 15, 2019, 12:33pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/6 "2019-10-15T12:33:24Z")

</div>

> [@RobTrew](#):
>
> (I think Notes may be one of the apps for which ‘Assistive Access’ is required to get at the UUID of a selected object)

Maybe, but giving the permission in Catalina does not prevent the failure.

If I run the Hook \> Notes \> Get Address script in Script debugger (under 10.15) this line fails

```var
set noteID to id of note windowName

```

with

 ![277](https://discourse.hookproductivity.com/uploads/default/original/1X/43b6adae8357909291ee932363382b21a2f288ee.jpeg)

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 15, 2019, 12:58pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/7 "2019-10-15T12:58:09Z")

</div>

> [@quorm](#):
>
> set … to id of …

I also saw a call to fetch an **id** fail in Bookends this morning (tho I’m not running Catalina).

In the case of Bookends, it proved possible to fetch all properties, and then extract the id from the property record.

Does the snippet below return an id string on Catalina ?

```applescript
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

tell application "Notes"
    set strWindowName to name of front window
    set oNote to note (strWindowName)
    set recProps to properties of oNote
    return id of recProps
end tell

```

( I’m wondering whether the new fencing of CoreData has had some unnoticed side-effect )

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 15, 2019, 1:42pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/8 "2019-10-15T13:42:58Z")

</div>

i.e. an experimental candidate for an update to the `Get Address` script for Notes might be:

```auto
tell application "Notes"
    activate
    set strWinName to name of front window
    if 2 > (count of windows) or "Notes" = strWinName then
        tell application "System Events"
            tell process "Notes"
                click menu item "Float Selected Note" of menu "Window" of menu bar 1
            end tell
        end tell
        delay 0.05
        set strNoteWin to name of (front window)
    else
        set strNoteWin to strWinName
    end if
    
    -- id value from properties record, 
    -- rather than directly from note object.
    
    -- Works on Mojave. 
    -- Not tested on Catalina, but possibly worth trying.
    
    "notes://" & (text 14 thru -1 of (id of ((properties of (note strNoteWin)) as record)))
end tell

```

---

<div class="post-metadata">

### Author: ![quorm](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/quorm/32/40_2.png) [@quorm](https://discourse.hookproductivity.com/u/quorm)
#### Post date: [October 15, 2019, 7:21pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/9 "2019-10-15T19:21:37Z")

</div>

> [@RobTrew](#):
>
> Does the snippet below return an id string on Catalina ?

Script Debugger gets upset by this line

```auto
set oNote to note (strWindowName)

```

 ![778](https://discourse.hookproductivity.com/uploads/default/original/1X/489d3c355ee6eac7b3f3b09918409c8bc64da9cd.jpeg)

> [@RobTrew](#):
>
> an experimental candidate for an update

Fails on Catalina for the same reason.

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 15, 2019, 7:42pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/10 "2019-10-15T19:42:31Z")

</div>

I wonder if the scripting dictionary has changed …

Don’t have Catalina here, so hard to experiment …

🤔

---

<div class="post-metadata">

### Author: ![quorm](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/quorm/32/40_2.png) [@quorm](https://discourse.hookproductivity.com/u/quorm)
#### Post date: [October 15, 2019, 8:50pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/11 "2019-10-15T20:50:42Z")

</div>

> [@RobTrew](#):
>
> I wonder if the scripting dictionary has changed …

It looks like

```var
name of front window

```

is always returned as “Notes” even if a note is open in a separate window – with the note’s name in the window bar – and the main window is closed.

---

<div class="post-metadata">

### Author: ![quorm](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/quorm/32/40_2.png) [@quorm](https://discourse.hookproductivity.com/u/quorm)
#### Post date: [October 15, 2019, 9:10pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/12 "2019-10-15T21:10:55Z")

</div>

This is interesting and unexpected

 ![449](https://discourse.hookproductivity.com/uploads/default/original/1X/8382f0cdc00fb8aea3c55d5fe4c8544d6bdc1a62.png)

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 15, 2019, 10:06pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/13 "2019-10-15T22:06:20Z")

</div>

That looks like a promising discovery (as well as mildly unsettling evidence of API change), can you find a way of getting that `id` as a string ?

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 15, 2019, 10:08pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/14 "2019-10-15T22:08:57Z")

</div>

Just to let you all know that we are tuned into this and doing various tests on our side.

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 15, 2019, 10:09pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/15 "2019-10-15T22:09:50Z")

</div>

> [@quorm](#):
>
> This is interesting and unexpected

Fortunately code can branch on `version`

```auto
tell application "Notes"
    version
end tell

```

In version 4.6 here on Mojave, we don’t have a selection method on the Notes app, so its appearance on Catalina does look promising …

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 15, 2019, 10:11pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/16 "2019-10-15T22:11:36Z")

</div>

it seems to me that our Catalina Notes testing involved notes not stored in iCloud [and “Copy as Link” and “Link to Copied Address” were working there] but that the issues here have to do with iCloud notes, which is obviously more representative and should have been the test. But we’ll say more about that later.

---

<div class="post-metadata">

### Author: ![RobTrew](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/robtrew/32/212_2.png) [@RobTrew](https://discourse.hookproductivity.com/u/RobTrew)
#### Post date: [October 15, 2019, 10:15pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/17 "2019-10-15T22:15:20Z")

</div>

> [@LucB](#):
>
> … that the issues here have to do with iCloud notes,

Possibly, though the scripting interface for Notes has clearly changed in Catalina.

If you hit a compilation problem writing code that targets both Notes versions (Mojave 4, and what I guess might be Catalina 5) then one approach might be to include the sensitive part as a literal string, and invoke it with Applescript’s `run script`, or the `eval` in JS, on either side of a branch on `version`.

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 16, 2019, 10:57pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/18 "2019-10-16T22:57:40Z")

</div>

We have uploaded a fix for this to the Hook Integration Server (scripts v80). If you experienced a problem before the fix, please let us know if it works for you.

More details to follow.

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 16, 2019, 11:21pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/19 "2019-10-16T23:21:18Z")

</div>

apparently I spoke before the developers had finalized their changes, sorry.

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 19, 2019, 6:12pm UTC](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883/20 "2019-10-19T18:12:25Z")

</div>

As I alluded to in response to Rob this morning re [Hook integration scripts v. 82: Update to Xcode scripts (for Xcode 11 compatibility) - Releases - Hook Productivity Forum](https://discourse.hookproductivity.com/t/hook-integration-scripts-v-82-update-to-xcode-scripts-for-xcode-11-compatibility/890/3), there is a number of issues with Apple Notes that our investigation has surfaced which pose linking problems. We’ve logged at least one bug with Apple (I think Graham has logged more, I will check with him; there is more than one Apple Notes issue). There is one more set of things I will test today, and then I will provide a summative update here later today (Pacific Time).

[Next page](https://discourse.hookproductivity.com/t/no-linkable-item-found-in-apple-notes-under-macos-10-15-catalina/883.md?page=2)
