I asked ChatGPT to read https://leo-editor.github.io/leo-editor/scripting-miscellany.html then update a python script with a Leo method. It worked fine :)
-- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/6ec2b2f6-76da-4cd6-8c20-65fdcd9778e7n%40googlegroups.com.