I'm not sure if this is a HS4 Beta issue or perhaps something not right with my HS4 install. I have noticed that events with immediate script commands that worked correctly in HS3 are producing errors in HS4.
Example:

Produces:
Example:
Produces:
Comment