I’m a longtime Applescript user, and appreciate it’s integration in Devonthink
The Applescript editor is a useful tool for editing scripts and access to each app script dictionary
I actually use the Script Debugger app; a more advanced tool
The DT toolbar includes an icon for quick access to the scripts folder and launching scripts
Lots of script examples there