Can scripts be automatically triggered by events?

That will suffice for some purposes, but it’s still necessary for a script know its broader context - i.e., “how did I get here”:

  • If I create the button/script in the Task Type, how does it know which Project to attach the Task to? (that’s the context)

  • If I create the script in the Meeting/Project Type, can it create a new Task, set its fields, and then Open it for the user to finish filling it in?