# Weird behavior with Omnifocus

**URL:** <https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596>\
**Category:** Discussion & Help\
**Created:** [June 19, 2020, 10:50am UTC](https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596 "2020-06-19T10:50:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seishonagon](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/seishonagon/32/99_2.png) [@seishonagon](https://discourse.hookproductivity.com/u/seishonagon)\
**Post date:** [June 19, 2020, 10:50am UTC](https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596/1 "2020-06-19T10:50:27Z")

</div>

I seem to be experiencing the same behavior as in this post: [Multiple OmniFocus Windows](https://discourse.hookproductivity.com/t/multiple-omnifocus-windows/530)  
I’m running Hook v1.7 with script version 120, and Omnifocus 3.8 (v143.1.19).

When I launch hook and invoke Hook to New Omnifocus, a new task is created in the inbox but TWO new windows are launched. As anybody seen this?

ps: i’ve run “rebuild database” as suggested in the linked post, to no avail .

---

<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:** [June 19, 2020, 11:30pm UTC](https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596/2 "2020-06-19T23:30:09Z")

</div>

I can’t replicate this with same version of OmniFocus on macOS 10.14.6. (My 10.15 MacBook Pro is in for keyboard repairs so can’t test that right now). are you on 10.15?

---

<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:** [June 19, 2020, 11:37pm UTC](https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596/3 "2020-06-19T23:37:40Z")

</div>

I did a bit of web search for OmniFocus’s ‘make new task with properties’ … leading to duplicates. Can’t come up with anything so far. But there might be someone over on [https://discourse.omnigroup.com/c/omnifocus/](https://discourse.omnigroup.com/c/omnifocus/) who has seen this type of issue. ( Sal Soghoian works for OmniGroup. Maybe in the history of AppleScript there’s some rationale behind duplication.) I’ll also bring it up with a developer here.

---

<div class="post-metadata">

**Author:** ![seishonagon](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/seishonagon/32/99_2.png) [@seishonagon](https://discourse.hookproductivity.com/u/seishonagon)\
**Post date:** [June 20, 2020, 5:19am UTC](https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596/4 "2020-06-20T05:19:30Z")

</div>

Yes I’m on 10.15. I thought it was a setting in OF such as “always open in new tab” but it’s not, I’ve forced OF to open in tabs or in windows and I get duplicates in both cases.

---

<div class="post-metadata">

**Author:** ![seishonagon](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/seishonagon/32/99_2.png) [@seishonagon](https://discourse.hookproductivity.com/u/seishonagon)\
**Post date:** [June 20, 2020, 5:31am UTC](https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596/5 "2020-06-20T05:31:26Z")

</div>

Got It!

A long time ago I’d set the following hidden preference:

`omnifocus:///change-preference?ShouldOpenLinksInNewWindows=true`

Setting it back to

`omnifocus:///change-preference?ShouldOpenLinksInNewWindows=false`

solved the issue.  
That’s two hours of my life I’m not getting back 😃 Let’s say I learned something (I think).  
Thanks @LucB for looking into it and sorry for the wild goose chase.

---

<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:** [June 20, 2020, 5:00pm UTC](https://discourse.hookproductivity.com/t/weird-behavior-with-omnifocus/1596/6 "2020-06-20T17:00:52Z")

</div>

Thanks for letting us know. I wasn’t aware of that advanced preference.
