I tried to do it from memory, and I went to the scripting documentation on github and mistakenly entered "Document.crop" instead of Crop.
For a non coder, it is very difficult to add stuff in the list, not knowing what is the correct item.
So I stand with my suggestion to make the built-in list of events longer.
(but thanks, viewing your post, I was able to make it work!)
... View more