devonthink-python icon indicating copy to clipboard operation
devonthink-python copied to clipboard

Devonthink 4 support

Open FabrizioMusacchio opened this issue 6 months ago • 1 comments

Hi PyDT3 developer team! 😊

First of all, thank you for your great work on this project — pydt3 is an elegant and very helpful bridge for integrating DEVONthink 3 with Python workflows. I've been using it in a custom visualization tool that builds local connection graphs of interlinked Markdown notes. Everything works perfectly in DEVONthink 3!

I was wondering whether you have any plans to update pydt3 for DEVONthink 4? I understand that the AppleScript interfaces may have changed or been deprecated in part, but it would be fantastic if Python integration could continue under DT4 — either with this library or a potential successor.

Thanks again for your work, and I’d be happy to test or support where I can!

Best regards,
Fabrizio

FabrizioMusacchio avatar Jul 11 '25 20:07 FabrizioMusacchio

Updating shouldn't pose too much of a problem. Instead of Application("DEVONthink 3"), use Application("DEVONthink"). In createRecordWith, change type to recordType. There might be minor changes in other methods, too.

I understand that the AppleScript interfaces may have changed or been deprecated in part

AFAICT, nothing has been deprecated from the scripting interface. Changes have mostly been made to the JXA part of this interface (which is what PyDT3 uses – no AppleScript!).

chrillek avatar Jul 12 '25 11:07 chrillek