Once a script has been evaluated, you can use the following ALH API to trace from where the script was called and access the Caller.
public NamedElement getCaller() { ... }
It will return the Caller element of the script. For example, if a Behavior that runs a script is called from a callBehavior, you will get a callBehavior action as the Caller.