@mmynsted If you want to avoid storing the link in the file, here’s another discussion we had about looking them up with an AppleScript (which you can run as a service, Alfred, or whatever). These scripts all use the command that @cgrunenberg is referring to:
I could never quite figure out how to get the sidebar behavior the way that I wanted it, but it otherwise works quite well when opening one file at a time (from Finder to DEVONthink). I use it a lot with Alfred. But several others in that discussion - with a lot more experience than myself - shared their fantastic scripts and prior discussions, too. @ngan @pete31 @Stephen_C @korm @BLUEFROG
However, if you wanted to use that script I posted to embed URLs in the kMDItemWhereFroms field (below), you’d have to modify it to grab the item link. At the moment, it’s grabbing whatever’s listed in the URL field of DEVONthink. I created that script because I wanted the metadata associated with the source of my web clippings - i.e., the website where they were clipped from - to be embedded in the file itself, kind of like it would be if you were downloading it from Safari, etc. I sometimes use Alfred or HoudahSpot - outside of DEVONthink - to search for external files by their source, and so it’s helpful if embedded in the file (e.g., searching by NYTimes, devontechnologies.com, etc.). As a researcher, I also worry about the source of the web clipping ever getting lost (e.g., because I did something stupid in DEVONthink, and managed to sever the ties between the file and its metadata stored in DEVONthink). I wish this was done automatically with web clippings and that particular bit of metadata, but I guess I’m a bit of a worry-wart