# Linking a Finder.app folder to an OmniFocus item

**URL:** https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560
**Category:** Discussion & Help
**Created:** [August 4, 2021, 1:34am UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560 "2021-08-04T01:34:52Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![josh](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/josh/32/512_2.png) [@josh](https://discourse.hookproductivity.com/u/josh)
#### Post date: [August 4, 2021, 1:34am UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/1 "2021-08-04T01:34:52Z")

</div>

I’m trying to link a folder in Finder to a folder in OmniFocus but am running into issues.

My current process:

1. Select and copy the link of the item in OmniFocus
2. Locate folder I want to link to in the Finder.app – left-click to select it
3. Invoke Hook.app keyboard shortcut
4. Press ⌘V or choose “Hook to Copied Link”

Everything seems to work fine at first glance, but when I tried opening the OF project from the Hook window after selecting the linked folder in Finder, it wouldn’t work.

Upon closer inspection, the link in Hook has a “%0A” appended to it. The original link from OmniFocus does _not_ have that “%0A” text. I’m guessing it’s the line break that OmniFocus copies for some reason (a bug I guess on OF’s end?).

Raw OmniFocus link:  
 ![original url from OmniFocus](https://discourse.hookproductivity.com/uploads/default/original/2X/9/9c503f20fa68d5a609665e72a2308003749ea235.png)

URL stored in Hook app:

 ![hook url with at end](https://discourse.hookproductivity.com/uploads/default/original/2X/d/d7f7ef932932f808c88e6a1416a2b2b69b8c8b13.png)

Anyway, is there any way to remove this or fix it somehow on Hook’s end? Does anyone else run into this issue? If so, how have you dealt with it?

---

<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: [August 4, 2021, 3:53am UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/2 "2021-08-04T03:53:29Z")

</div>

The Finder side of this should be irrelevant. To isolate the issue, you can paste the OmniFocus:// URL and use it anywhere. I’ve tried copying a link to an OmniFocus folder and it was fine. I also tried with your procedure.

I tried with OmniFocus Pro for Mac 3.11.7 (v149.14.0) and could not replicate the issue. Here are some example URLs:

`omnifocus:///task/gtc-7QRdfxI`  
`omnifocus:///folder/ietvUWOO3y7`

If you use OmniFocus itself to get a URL to that item, do you get %0A tacked onto the end? Oh, …, I see that you have a screenshot which is presumably using OmniFocus’s in app `Copy Link`?

Do you have a new clipboard utility that might be messing with the clipboard?

---

<div class="post-metadata">

### Author: ![josh](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/josh/32/512_2.png) [@josh](https://discourse.hookproductivity.com/u/josh)
#### Post date: [August 4, 2021, 1:40pm UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/3 "2021-08-04T13:40:39Z")

</div>

Ever since I can remember I’ve always had that line break when I copied OF item’s links via OF’s “Copy as Link” function. So it could be something my system specifically is doing to the link. I use Paste.app as a clipboard manager, but nothing else that I think would mess up the link.

So, you’re saying that when you copy an OF item’s link by right-clicking said item in OF and selecting “Copy as Link”, you get a link that _doesn’t_ have a line break at the end?

---

<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: [August 4, 2021, 4:01pm UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/4 "2021-08-04T16:01:57Z")

</div>

> [@josh](#):
>
> you get a link that _doesn’t_ have a line break at the end?

That’s correct. Never seen it. I would try turning off Paste.app to see if it makes a difference. If it does, you might want to verify its settings – maybe there’s a way to turn it off dynamically in selected apps/contexts; or ask them about it. If it’s not that, maybe the The Omni Group/forum have an idea, or someone here as we have a lot of OmniFocus users.

---

<div class="post-metadata">

### Author: ![stevelw](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/s/ea666f/32.png) [@stevelw](https://discourse.hookproductivity.com/u/stevelw)
#### Post date: [August 4, 2021, 5:17pm UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/5 "2021-08-04T17:17:47Z")

</div>

Do you still get the issue with SHIFT+CMD+V in step 4?

---

<div class="post-metadata">

### Author: ![josh](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/josh/32/512_2.png) [@josh](https://discourse.hookproductivity.com/u/josh)
#### Post date: [August 5, 2021, 12:17am UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/6 "2021-08-05T00:17:48Z")

</div>

That’s super weird you’re not seeing it on your end, as OF support just got back to me saying it _was_ a known bug:

 ![image](https://discourse.hookproductivity.com/uploads/default/original/2X/8/80ebc9a41f13b937bb0eee474a8f0b97bfdc7e32.jpeg)

🤔

---

<div class="post-metadata">

### Author: ![josh](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/josh/32/512_2.png) [@josh](https://discourse.hookproductivity.com/u/josh)
#### Post date: [August 5, 2021, 12:18am UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/7 "2021-08-05T00:18:22Z")

</div>

Yep, same result unfortunately. 😕

---

<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: [August 5, 2021, 5:55am UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/8 "2021-08-05T05:55:16Z")

</div>

Ah, I see what is happening.

> [@josh](#):
>
> - Select and copy the link of the item in OmniFocus

You used OmniFocus to copy the link.

> [@LucB](#):
>
> I tried with OmniFocus Pro for Mac 3.11.7 (v149.14.0) and could not replicate the issue. Here are some example URLs:

I must have used Hook’s `Copy Link`, or I was looking for an escape character that I didn’t see. Either way, I have replicated OmniFocus `Copy as Link` issue.

Hook avoids the OmniFocus bug because its “Get Address” script uses AppleScript and constructs the link itself, like this:

```auto
        if class of theSelection is folder then
            set theURI to "omnifocus:///folder/" & id of theSelection
        else
            set theURI to "omnifocus:///task/" & id of theSelection
        end if

```

So, Hook constructs the URL from the ID. We don’t ask for the URL, we construct it.

So the solution for you is to rely on Hook’s `Copy Link` not OmniFocus’s. So another advantage of Hook over Keyboard Maestro (UI scripted) style solutions for hyperlinking.

---

<div class="post-metadata">

### Author: ![josh](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/josh/32/512_2.png) [@josh](https://discourse.hookproductivity.com/u/josh)
#### Post date: [August 12, 2021, 11:35pm UTC](https://discourse.hookproductivity.com/t/linking-a-finder-app-folder-to-an-omnifocus-item/3560/9 "2021-08-12T23:35:25Z")

</div>

Thank you, that fixed it! 🎉
