On ExtendScript’s Lexical Scope

A script engine can be thought as a namespace, or better as a memory cluster enjoying lexical scoping. Despite being a pretty informal description, this highlights that engines can both retain identifiers and data but do not work together (i.e. do not share their knowledge)… Every script runs in its own engine. The default engine has the name "main" (as revealed by $.engineName ) and is not…