Return links/Back links

You can add this to run it as a standalone.

tell application id "DNtp" to my PerformSmartRule(selection as list)

Done :wink: Just look for version A in the git repo.


@jooz, perhaps that could be it for your case as well?

That was indeed my case! My both test files were empty. Your script works brilliantly now after adding some random test text :slight_smile:

P.S.: Thank you a ton for being such an impressive contributor to this forum (and also other forums like KM!). I learnt a ton from you.

1 Like

Is there a way of having this script show x-devonthink-item:// links as well as wiki links? I have occasion to use those so it’d be great if the back links for those were also listed.

Hi @Bernardo_V,
Your script is exactly what I need, but for some reason I can make it work.
I want to use it as a smart rule, but it behaves strangely.
If I give a file more than one alias, then it will not return any link.
What am I doing wrong?

Hi @Bernardo_V
I set up Version B of your wonderful script. I test it in a test database.
After using it, it only works on Pdf reference file; but didn’t does anything on md and rtf files.
Is there any configuration that I missed to take?
I used the last version on GitHub.



My suggestion would to test in a separate database and with more files.
See if that helps!

Thanks. I will check it with my main database.