I have files shared from DEVONthink into Tinderbox; DEVONthink does the fine thing of indexing them in a directory, so I can use any editor to change them, and they propagate back into Tinderbox courtesy of having a DT URL.
I have another script which I occasionally use, which sends the text from Tinderbox into the corresponding DEVONthink note, which magically writes it to disk. It all works very pleasantly.
Sometimes, I have to change the name of a note (‘file’) in Tinderbox. It would be great to have this replicated on disk, but the obvious answer of just deleting it and creating a new one is not my preferred choice as it breaks version histories and the complex mapping between both systems.
I see in the Applescript dictionary that the filename property of a record is ‘get’ only. However, I know that the filenames are all in a specific directory, and won’t conflict as much as items imported to DEVONthink.
With this in mind - is there any sane way to rename filenames? If I click them in the DEVONthink interface, I can rename them in lists, and metadata is preserved; is there any way I can get to this functionality programmatically? (with all the caveats about edge cases, such as renaming a file using the name an existing file has, or other idiocy human users such as myself might introduce)
Not at all; more that such a straightforward bit of code would have been thrown out easily by all manner of models, whereas I’m frozen worrying about all the complexities. At least I’m still sharper than Quora.
As usual a good model and a good prompt can make a huge difference. E.g. I used Claude 4.1 Opus and the complete initial post in DEVONthink’s chat assistant and the first suggestion was this: