I have a series of scripts that have similar handlers so I’m putting all the handlers into a script library and it’s working well.
My process is I’ll copy a handler from one script and put it in the library then block-comment the handler in the script.
I have one script where I have done this with all handlers, now I’m working with other scripts so they can use the same lib.
At one point I needed to work with handlers in the source script. I did a select all, then in the Code Folding menu chose “Unfold All”
Doing this caused one of the handlers that just unfolded to execute. That handler displayed a Dialog Toolkit window and the window appeared but none of the buttons or other UI features worked and Script Debugger was hung and had to be force quit.
I reopened the script and tried again, same result.
→ Mac OS: 14.6.1 (23G93)
→ Script Debugger 8.0.8 (8A80)
→ SD Notary 2 2.0 (102)
→ FastScripts 3.2.7 (1767)