Item links

Every database, group, or document in your DEVONthink database has a URL (uniform resource locator) associated with it. While web URLs typically begin with http:// or https://, DEVONthink's URLs take the form of x-devonthink-item:// followed by a long alphanumeric ID. These are most commonly used for backlinks and deeplinking, even with external applications. But item links can also be used as a type of automation when extended with URL parameters.

You can get this item link manually by selecting a document or group and choosing Edit > Copy Item Link. You then can manually extend the copied URL with the following parameters, as needed:

Terminology

Manually getting item links can be useful for some hard-coded cases, but there are many times you want to get them programmatically. There are two AppleScript properties for a record related to item links:

Here is an example of getting and using an item link to create a Markdown compliant link on the clipboard:

The terminology for using item links can depend on the capabilities of the application you're scripting. Here is an example, using a hard-coded URL, with an application that can open URLs:

P.S.: For the shell scripters, the URLs can be used with an open command.