I am using Drafts as my note taking app on the iPad. Because of its flexibility it has the power to be THE text hub on iOS/iPadOS devices. But in my case most of the notes created in Drafts I sent to DEVONthink To Go. Simply because DEVONthink is the place to be for informations of all kinds, as you all well know.
Most of these notes I do not edit on my iPad and for the almost always minor edits of the rest the editing capacities of DTTG suffice. So my usage scenario is just one-way. Nonetheless I dare to contribute to this thread because I think there might be a way to go both directions. I just haven’t tested it because I did see no need to.
Say, you have written this note in Drafts:
Test Note
Content
When you use the DTTG action provided by Agile Tortoise, the creators of Drafts, the first line will become the title, the rest the content of the note. I modified it because I rarely do write notes with headings and want the whole of the note to become the content. So all of the above Drafts note will be the DTTG note.
So far, so good, but again, just one-way.
To edit this DTTG note not in DTTG but in Drafts you should NOT use “Open In” but use Draft’s Share icon in DTTG. If you do so the note opened in Drafts looks something like this:
Test Note
x-devonthink-item://A11266CE-54D2-8911-A24F-ADC1FDFC3A66
Test Note
Content
Then you can edit the note in Drafts and it should be possible to create a second Send to DTTG action that does not create a new note but uses the provided x-devonthink-item informations to alter the linked DTTG note. Of course this action should only hand over everything below the x-devonthink-item line as note content.
If it works it would also be possible to combine the Create New Note in DTTG action with the Edit Note from DTTG action by letting the script look if there are x-devonthink-item informations in a specific paragraph of the note (trigger Edit Note action) or not (trigger Create New Note action).
Of course this would not be the same as notes in a place where different apps simply have access to them and each of them can always display the latest state of these notes, no matter in which other app they have been edited. The Drafts action scenario described requires DTTG as the starting point. But it does not require DEVONthink on the Mac.
In addition while the Drafts action would allow to edit the same DTTG note over and over again in Drafts each editing iteration would create a new version of that note in Drafts. Maybe this could be prevented by using the link of the Draft note so both apps only have one version of the note and Drafts not many.
But two questions pop up: Where should DTTG store the link of the Drafts note? In And: Why? Keeping versions of a note in Drafts isn’t a bad thing at all. Add Move to Archive as the final step to the action and the versions of the notes are out of the way but always accessible if necessary.
For everyone unfamiliar with Drafts I want to add that creating and customizing actions is only possible with the for-pay version.