This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

OnAdd & Agent actions

All containers and adornments apply an 'OnAdd' action (stored in $OnAdd) to items added to them. The action fires once only, on addition. If a note is removed from a container and then added back again, the OnAdd would fire again.

Agents have the same mechanism for their child aliases, except is it is terms the agent action and stored in $AgentAction. Thus agents don't use $OnAdd - any code stored there is never used by the agent.

The action can be any valid action code expression(s). Multiple expressions need a semi-colon delimiter between them.

The Action Inspector's Action tab's code is automatically stored in $AgentAction for agents and $OnAdd for all other types of note object.



A Tinderbox Reference File : Objects & Concepts : Concepts : Actions : OnAdd & Agent actions