Can't run script in widget mac

Hello everybody, I’m pretty new to scriptable.
I wrote a little script that work when I run it in scriptable.
I want to run it in a widget but I can’t choose the script I want to run when I add a widget.
Do you have any idea?

Even by clicking on “Ok” it’s written “loading not possible”

This seems to be a fairly common bug with the macOS version of Scriptable. I guess you could try reinstalling the app, but hopefully Simon releases an updated build of Scriptable for Mac sometime.