# Can you make a deep PDF linking in DevonThink's PDF?

**URL:** <https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380>\
**Category:** Hookmark Feature Requests\
**Created:** [December 26, 2021, 4:20pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380 "2021-12-26T16:20:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@Jason](https://discourse.hookproductivity.com/u/Jason)\
**Post date:** [December 26, 2021, 4:20pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/1 "2021-12-26T16:20:32Z")

</div>

Just like PDF PenPro or skim?

---

<div class="post-metadata">

**Author:** ![splnk](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@splnk](https://discourse.hookproductivity.com/u/splnk)\
**Post date:** [December 28, 2021, 12:40am UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/2 "2021-12-28T00:40:31Z")

</div>

Yes, that would be awesome. I’ll second that.

---

<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:** [December 29, 2021, 6:41pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/3 "2021-12-29T18:41:24Z")

</div>

Anyone care to ask on the DEVONthink forum whether they have an API for deep linking? Or peak in their AppleScript dictionary. They have one to get the link itself.

---

<div class="post-metadata">

**Author:** ![Jafam](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@Jafam](https://discourse.hookproductivity.com/u/Jafam)\
**Post date:** [January 3, 2022, 1:34pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/4 "2022-01-03T13:34:01Z")

</div>

I haven’t been able to get PDFPenPro or Skim to generate PDFs on my computer. I don’t know why because they used to work fine.

---

<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:** [January 3, 2022, 6:01pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/5 "2022-01-03T18:01:24Z")

</div>

> [@Jafam](#):
>
> I haven’t been able to get PDFPenPro or Skim to generate PDFs on my computer.

do you mean PDFs or links? Skim is not a generator ( PDFpenPro can create links).  
Regarding Skim, please see [macOS 12.1 AppleScript issues affecting Skim - Discussion & Help - Hook Productivity Forum](https://discourse.hookproductivity.com/t/macos-12-1-applescript-issues-affecting-skim/4316/2). Skim dev has published a link, mentioned in that post, to a build that works around the macOS AppleScript issue.

---

<div class="post-metadata">

**Author:** ![splnk](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@splnk](https://discourse.hookproductivity.com/u/splnk)\
**Post date:** [January 3, 2022, 10:33pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/6 "2022-01-03T22:33:56Z")

</div>

I believe, that Devonthink has no capability to do deep linking. They do have “Copy Page Link” for a designated pdf page and an included search term which give the first entry of the search of the given page.

For exampe:  
**devonthink-item://03A24339-83EF-440A-9BC6-34F2E53AEA95**?page=4  
**&search=Quantification%20of%20Response%20Tendencies%20With%20Multinomial%20Modeling**

gives me a hacky deep link with a jumping to the selected text. (Text is not highlighted with any annotation tool)

 ![Screenshot 2022-01-03 at 23.30.33](https://discourse.hookproductivity.com/uploads/default/original/2X/c/c2d9e3cfb5deaf1d92a17ec97931bc35c145d1ac.jpeg)

The first parameter is indicated by **?** and the second parameter by **&**. If there are more than one matches, there won’t be any search highlights… Therefore the used search selection must be unique.

@LucB Do you maybe can tell me how I can peek into the Applescript dictionary?

---

<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:** [January 3, 2022, 10:55pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/7 "2022-01-03T22:55:48Z")

</div>

Super! I would think even just the first page is a great start. Haven’t tested yet, but it means users can use use “Copy Page Link” as of today. We should easily be able to add Hook to make it behave like it does with other PDF apps and websites.

I will have a look and one of us here will update [Using Hook with DEVONthink by DEVONtechnologies – Hook](https://hookproductivity.com/help/integration/using-hook-with-devonthink/) when the dust settles.

(Aside: I myself PDFs directly on Mac. I don’t read PDFs on mobile devices. I do read ebooks on them however.)

> [@splnk](#):
>
> @LucB Do you maybe can tell me how I can peek into the Applescript dictionary?

There’s [Hook’s AppleScript Dictionary – Hook](https://hookproductivity.com/help/automation/hooks-applescript-dictionary/) , which is very concise because the dictionary is short , documented and pretty simple. It was in the AppleScript dictionary that we first exposed that Hook is in fact a new kind of bookmark manager, but that went unnoticed at the time.

---

<div class="post-metadata">

**Author:** ![liuhx1982](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/l/f17d59/32.png) [@liuhx1982](https://discourse.hookproductivity.com/u/liuhx1982)\
**Post date:** [January 5, 2022, 6:36am UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/8 "2022-01-05T06:36:15Z")

</div>

hooking pdf in skim failed ，and the hooking link created before all failed 😢 😢;but hooking pdf in PDFpen pro is successful！  
my MacBook pro version is Monterey 12.1；and in my another MBP laptop（big sur 11.6），the hooking in skim is successful；  
so where is the problem？？？  
Mac OS version, Skim ,or Hook??

---

<div class="post-metadata">

**Author:** ![phive30](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/p/a9adbd/32.png) [@phive30](https://discourse.hookproductivity.com/u/phive30)\
**Post date:** [January 5, 2022, 5:11pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/9 "2022-01-05T17:11:54Z")

</div>

I am unable to link PDFs from DevonThinkToGo at all. (Not even referring to deep links) Either by going to the share sheet or when selecting text. Am I missing something?

---

<div class="post-metadata">

**Author:** ![splnk](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@splnk](https://discourse.hookproductivity.com/u/splnk)\
**Post date:** [January 5, 2022, 6:57pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/10 "2022-01-05T18:57:56Z")

</div>

Here is your solution:

> [@macOS 12.1 AppleScript issues affecting Skim](https://discourse.hookproductivity.com/t/macos-12-1-applescript-issues-affecting-skim/4316/2):
>
> [Christian Hofman](https://sourceforge.net/u/hofman/profile/) posted a Skim.zip file that works around the issue such that No linkable item found in Skim is no longer seen: [Skim / Bugs / #1438 Crash when calling displayline: Internal table overflow](https://sourceforge.net/p/skim-app/bugs/1438/?page=3#25bd/3b55/865d/6eef/cf05) .

---

<div class="post-metadata">

**Author:** ![splnk](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@splnk](https://discourse.hookproductivity.com/u/splnk)\
**Post date:** [January 5, 2022, 6:59pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/11 "2022-01-05T18:59:38Z")

</div>

I think that you should ask this question in the correct forum section. Just a friendly reminder.

---

<div class="post-metadata">

**Author:** ![splnk](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@splnk](https://discourse.hookproductivity.com/u/splnk)\
**Post date:** [January 16, 2023, 2:25pm UTC](https://discourse.hookproductivity.com/t/can-you-make-a-deep-pdf-linking-in-devonthinks-pdf/4380/12 "2023-01-16T14:25:05Z")

</div>

Hello,  
it would be nice, if hookmark could implement deep linking via the search query 🙂

> **[Deep Linking Hook](https://discourse.devontechnologies.com/t/deep-linking-hook/69403/39)**
>
> Item links support already ?search=text queries, a script could be used to generate them for the currently selected text.
