Script
The following are Script types of a Graphic Document:
On Open:
Executes every time the graphic opens
On While:
Executes while the graphic is open
On Close:
Executes every time the graphic closes