Current script document, mostly the current front document.

Current script document, mostly the current front document. Inside document actions, script doc and front doc can defer. The following table shows the values of gDocument inside document scripts, see also at). With document::defined you can check, whether a documents reference is valid.

Action Action ID Description
Before create 41 not defined
After create 42 defined
Before open 43 not defined.
After open 44 defined
Before save 45 Only defined, if document isn't new.
After save 46 defined
Before 'Save under' 47 Only defined, if document isn't new.
After 'Save under' 48 defined
Before Sacew a copy' 49 Only defined, if document isn't new.
After 'Save a copy' 50 defined
Before revert 51 Only defined, if document isn't new.
After revert 52 Only defined, if document isn't new.
Before closing 53 defined
After closing 54 no more defined

Since
Version 1.1.7, Januar 2005
See Also
document::current
Script environment

Alphabetic index HTML hierarchy of classes or Java