X-devonthink links?

I am not sure who owns the format of these links, and what possibilities they offer. The createText after the x-devonthink://, is that part of DevonThink? Part of MacOS? I got this from a DraftsAPP Action do they own the createText? I am asking because I would like to use this to create a MD document inside of DT. Instead of a plaintext document.

x-devonthink://createText?title=[[title]]&location=‘’&text=[[body]]

It is part DEVONthink, part Drafts.

You can look up the URL commands for DEVONthink in the Manual. Search for “URL Commands”. In the version 3.9 I am using it starts on page 215.

If it is a File action step you could look it up in Drafts online user guide here.

The link you are looking for could look like this:

x-devonthink://createMarkdown?title=[[title]]&text=[[body]]&tags=[[tags]]&destination=123456-1234-124567-12F135-F124567&noselector=1

The important difference is of course: createMarkdown instead of createText.

The destination is the link to the database or the group you want to send your note to. You get it by a secondary click on the destination in DEVONthink and Copy Database/Item Link in the context menu. You will only need the part beginning with the numbers, not the leading x-devonthink://.

&noselector=1 means the Sorter will not pop up.

2 Likes

I’ll try this later tonight. Thank-you!!

Automation > URL Commands section of the built-in Help and manual

Thank-you. So this worked well. I am now able to move MD files from DraftsApp to DT. I have not tested how images and wikilinks work yet, but will move on to that.

Is there away to stop DevonThink getting focus each time the action is run. I am using the noselector option you mentioned. But the DT window still becomes the foreground app each time.

It is possible, but not with a x-url action. And that and the fact that you can use the x-url action only on one note at a time are the reasons why I don’t use it (on a Mac).

Instead I use the File action to save to the Global Inbox (precisely: the Finder folder called “Inbox”) and tags and a Smart Rule.

I can go into detail, if you like.

I am curious… so please…