openscript

“openscript” is a script attribute. If specified, when the object is opened, the script will run. If not specified, the object will be opened automatically.

See also open.