on.save()
This routine is called when the script app is saved to the document or copied to the Clipboard. The script should return a table of data needed to properly restore when the on.restore event handler is called.
Introduced in platform.apiLevel = '1.0'