Hi,
I would like to report a bug or inconsistency in the URI.
I created a hook file from the Devonthink 3’s item. When I clicked on the created hook file in Finder, I expected that Devonthink 3 Application would open and navigate to my item; but that did not happen.
The content of the hook file is as follows (ID replaced with “x”):
x-devonthink-item://xxxx-xxxx-xxxx-xxxx
I noticed that there are only two forward slashes in the URI. If I edit the URI to that of triple slash:
x-devonthink-item:///xxxx-xxxx-xxxx-xxxx
then the hook file works. The triple slash is what been described in make-hook-file documentation
Furthermore, the URI is inconsistent for the “copy markdown link” function. When using the “copy markdown link”, the string created in the pasteboard is:
[devonthink item](x-devonthink-item://xxxx-xxx-xxx-xxx-xxx)
This link works in a markdown document (.md); however, it does not work in a hook file (.hook). Notice the double slashes in the URI. If we change the URI to triple slashes, the hook file will open the item in Devonthink 3 App.
I am not sure how this thing works, but my feeling is the Hook App should work with a double slash URI because Devonthink3 will produce a link with a double slash when we use the “Copy Item Link” from the Devonthink 3 context drop-down (see image).