# How do I see all files with Incoming Links/Mentions?

**URL:** <https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935>\
**Category:** DEVONthink\
**Created:** [March 7, 2022, 2:33am UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935 "2022-03-07T02:33:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tacotuesday](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/t/13edae/32.png) [@tacotuesday](https://discourse.devontechnologies.com/u/tacotuesday)\
**Post date:** [March 7, 2022, 2:33am UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/1 "2022-03-07T02:33:25Z")

</div>

I want to see all Markdown files with Incoming Links (not Incoming _Item_ Links) to purge “orphan” notes from my databases. This would preferably be part of a Smart Group to maintain visibility on older notes. Is this possible? If so, how do I do it?

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [March 7, 2022, 10:14am UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/2 "2022-03-07T10:14:01Z")

</div>

Only item links are currently indexed and supported by smart groups and searching.

---

<div class="post-metadata">

**Author:** ![tacotuesday](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/t/13edae/32.png) [@tacotuesday](https://discourse.devontechnologies.com/u/tacotuesday)\
**Post date:** [March 10, 2022, 3:37am UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/3 "2022-03-10T03:37:43Z")

</div>

Thanks, @cgrunenberg! Do you know how (or know someone who would know how) to create a Smart Rule-compatible Applescript to automate the conversion of wiki links to item links? I have a couple of folders that I would like to convert in one go.

---

<div class="post-metadata">

**Author:** ![Stephen\_C](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/stephen_c/32/8107_2.png) [@Stephen\_C](https://discourse.devontechnologies.com/u/Stephen_C)\
**Post date:** [March 10, 2022, 6:33am UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/4 "2022-03-10T06:33:29Z")

</div>

Is [this](https://discourse.devontechnologies.com/t/script-convert-wikilinks-to-markdown-links/59889) what you are after (from one of the forum’s scripting experts)? However, please also note carefully the discussion in [this thred](https://discourse.devontechnologies.com/t/wiki-links-vs-regular-document-links/54096/19) (starting with the link I’ve given).

Stephen

---

<div class="post-metadata">

**Author:** ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)\
**Post date:** [March 10, 2022, 6:51am UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/5 "2022-03-10T06:51:06Z")

</div>

Haha, I read this thread here but didn’t respond as I wasn’t up to creating a Smart Rule and the necessary Script Library. Completely forgot that it already exists 😅 Thank you!

---

<div class="post-metadata">

**Author:** ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)\
**Post date:** [March 10, 2022, 7:44am UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/6 "2022-03-10T07:44:33Z")

</div>

> [@tacotuesday](#):
>
> I have a couple of folders that I would like to convert in one go.

You could select these groups in the sidebar, then search for `kind:markdown s:selection`, select all results and choose _Tools \> Links \> Convert WikiLinks to Item Links_. Or do you want to perform this frequently?

---

<div class="post-metadata">

**Author:** ![tacotuesday](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/t/13edae/32.png) [@tacotuesday](https://discourse.devontechnologies.com/u/tacotuesday)\
**Post date:** [March 10, 2022, 12:53pm UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/7 "2022-03-10T12:53:17Z")

</div>

Thanks for pointing this out. I didn’t think of the _easy_ solution. 🙃 I believe that after this step, I can use less sophisticated Smart Groups to do cleanup on newly-created files.

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [March 10, 2022, 2:20pm UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/8 "2022-03-10T14:20:04Z")

</div>

> [@tacotuesday](#):
>
> I didn’t think of the _easy_ solution. 🙃

That’s often the case…  
 ![Rube_Goldberg's_-Self-Operating_Napkin-_(cropped)](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/3/4/349239d9f982793ff67bf2e30ac9d9098727d129.gif)

---

<div class="post-metadata">

**Author:** ![system](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/2X/4/4e6ff70c96be2eb307a274d890bba8d71ba671b3.png) [@system](https://discourse.devontechnologies.com/u/system)\
**Post date:** [March 9, 2025, 2:20pm UTC](https://discourse.devontechnologies.com/t/how-do-i-see-all-files-with-incoming-links-mentions/69935/9 "2025-03-09T14:20:14Z")

</div>

This topic was automatically closed 1095 days after the last reply. New replies are no longer allowed.
