I like that idea because I think it's easy to make mistake when inserting a script there. But I struggled to think how it could be reasonably implemented. Do you have any suggestions?
Thanks for the use case... I can see it could be useful. I'll write it down, but implementing it depends how easily (if at all) the alarm information is available to applications.