Readwise to Devonthink script

Hi,

My setup: Mac Studio M2 Max, Sequoia 15.3.1, DT3 3.9.8.

I’ve just come across this script, Readwise highlights to DEVONthink - BrettTerpstra.com on the DT3 forums, and it looks like it could be very useful, thanks!

Unfortunately I can’t get it to work – probably my fault. I have followed the steps in order, including:

  • updating the built in ruby to homebrew’s 3.4.1 (and made sure that my path reflects this
  • added my token to the main readwise script (not the additional config, nor as an optional arg on the CLI command).

I get the following error message the first time I run it:

95:185: execution error: DEVONthink 3 got an error: Invalid argument in (-50)
93:183: execution error: DEVONthink 3 got an error: Invalid argument in (-50)

The readwise_last_update file is created properly, and the next time I run the command, there are no error messages.

However, there are also no files created in the Global Inbox (or anywhere else in DT3, either).

If I remove the last updated script and rerun the command, I get the same DT3 error as above.

When I ran the script for the very first time I was asked to give permission to DT3, which I did. Are there any other permissions I should give?

What should I try next, please?

Many thanks,

David

So sorry for the delayed reply here, I stopped getting notifications for a little bit there. I think I responded to this on the DT forum, but will repeat here.

I believe the issue is that I developed the script while using the v4 beta and didn’t realize that the update command wasn’t available on records in DT3. I removed that bit of code from the script, so if you grab the latest version, it should work. Please let me know if it doesn’t.

Thanks, Brett!

I’ll try it out and report back.

Best wishes,

David.