# Make hook link to omnioutliner current row

**URL:** https://discourse.hookproductivity.com/t/make-hook-link-to-omnioutliner-current-row/5699
**Category:** Share Hookmark automation
**Created:** [October 3, 2022, 6:25am UTC](https://discourse.hookproductivity.com/t/make-hook-link-to-omnioutliner-current-row/5699 "2022-10-03T06:25:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![weuu](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/weuu/32/1496_2.png) [@weuu](https://discourse.hookproductivity.com/u/weuu)
#### Post date: [October 3, 2022, 6:25am UTC](https://discourse.hookproductivity.com/t/make-hook-link-to-omnioutliner-current-row/5699/1 "2022-10-03T06:25:04Z")

</div>

Get Address:

```auto
tell application id "com.omnigroup.OmniOutliner5"
	set oouid to id of selected row of front document
	get "omnioutliner:///open?row=" & oouid
end tell

```

Get Name:

```auto
tell application id "com.omnigroup.OmniOutliner5"
	get name of selected row of front document
end tell

```

Of course it works like a normal omnioutliner unique ID link, which is that the link will not work unless the file is opened.

---

<div class="post-metadata">

### Author: ![bchend](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/dbc845/32.png) [@bchend](https://discourse.hookproductivity.com/u/bchend)
#### Post date: [October 5, 2022, 3:18pm UTC](https://discourse.hookproductivity.com/t/make-hook-link-to-omnioutliner-current-row/5699/2 "2022-10-05T15:18:37Z")

</div>

Thank you so much for sharing the script, @weuu !

---

<div class="post-metadata">

### Author: ![Project](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@Project](https://discourse.hookproductivity.com/u/Project)
#### Post date: [October 11, 2022, 10:54pm UTC](https://discourse.hookproductivity.com/t/make-hook-link-to-omnioutliner-current-row/5699/3 "2022-10-11T22:54:30Z")

</div>

Excuse my basic question but do I have to edit the two built-in script that are now in Hook and substitute then with these scripts? Or is there some other way to add these scripts without deleting the built ones?

---

<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 12, 2022, 4:51am UTC](https://discourse.hookproductivity.com/t/make-hook-link-to-omnioutliner-current-row/5699/4 "2022-10-12T04:51:15Z")

</div>

> [@Project](#):
>
> Or is there some other way to add these scripts without deleting the built ones?

You would be _overriding_ rather than _deleting_ the scripts. You can always revert to the built-in script included by CogSci Apps in Hook. To delete the override, just press “-” in the bottom left of [Hook’s Scripts Tab](https://hookproductivity.com/help/preferences/script-editor/).

---

<div class="post-metadata">

### Author: ![Project](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@Project](https://discourse.hookproductivity.com/u/Project)
#### Post date: [October 12, 2022, 7:13am UTC](https://discourse.hookproductivity.com/t/make-hook-link-to-omnioutliner-current-row/5699/5 "2022-10-12T07:13:00Z")

</div>

Thanks a lot, it works! The way I use Omnioutliner I was searching exactly for this feature so many thanks to @weuu the shared the script!!!
