DT4 - Add 1st class support for Python in DEVONthink

I would really appreciate to have a 1st class support for something else than AppleScript or JXA. Maybe we could have an internal Python interpreter or something else.

In favor of Python, consider the following advantages:

  • An expansive ecosystem
  • Commendable support for data analysis

Sidenote: I’m tired of writing AppleScript - the only language with a good debugger for automating DT - a language somehow abandoned by Apple long time ago - at least in my point of view. And I’m willing to invest a huge amount of time in JXA - a language without a debugger. I make to many mistakes while writing code.

The request is noted but there are no plans to add Python support beyond what you can do with calling shell scripts via AppleScript or JavaScript.

The rewritten and extended script suite of DEVONthink 4 actually includes many examples now. See e.g. DT4 - AI is able to EDIT multiple documents. Huge potential - #3 by cgrunenberg

Perhaps this

Is interesting for you. Last time I looked, it was a Python wrapper for JXA. I don’t know how much of the DT scripting API it supports.

Alternatively, you might want to search for OSA support in Python.

But I believe it’s highly unlikely that DT will get a native Python API anytime soon. Much less an integrated Python interpreter.
Just may personal opinion, of course.

Thanks a lot.