This is the correct command but where exactly do you want to use this script? Maybe an item link (see Edit > Copy Item Link) is already sufficient to open the document in DEVONthink.
Thank you for the reply. I am familiar (and use) the item link all the time.
Once I have created the AppleScript I will assign it to a shortcut key. The reason is that the particular contains document has a lot of links to other documents in DTP.
I frequently need to refer to this document from a range of other apps (Word, Safari, Notes, HoudahSpot). So having a shortcut key where I can invoke the particular document is what I would like to do. Also I am trying to learn AppleScript, so knowing the correct syntax will be helpful (a search on the DT forum or elsewhere did not reveal any examples). For example, how to find the uuid of an item.
The best option for me in the situation you described - is Keyboard Maestro.
Yet other methods for fast navigation:
Create a little Markdown file with all the needed links, which you use often, and place it somewhere at hand. It’s like Favourits - clicking the link will open the file or group. I recommend to add “?reveal=1” to the end of UUIDs in this file
Call one of the Labels “Bookmarks”. Make the Smart Group like “Favourites” (searching for files and groups with this label). Then label and unlabel your most used items as you work and you’ll always find them in your Favourites group. This is the best option I use now, because it retains the look of this smart group (particularly the state of groups tree: collapsed and open groups) even if you collapse it and go work in other groups. It is important if you work actively with the groups structure (in Split view)