24
JavaScript Reference
Application object
24
Application exitCode attribute
a p p . e x i t C o d e
Description
A numeric status code used when executing a script externally (that is, from a command line or AppleScript).
•
In Windows, the value is returned on the command line when After Effects was launched on the commands
line (using the
a f t e r f x
or
a f t e r f x – m
command), and a script was specified with the
– r
or
– s
option.
•
in Mac OS, the value is returned as the AppleScript
D o S cr ip t
result for each script.
In both Mac OS and Windows, the value is set to 0 (
E X I T _ S U C C E S S
) at the beginning of each script evalu-
ation. In the event of an error while the script is running, the script can set this to a positive integer that
indicates what error occurred.
Type
Integer; read/write.
Example
a p p . e xi t C o d e = 2 ; / / o n q u i t , i f v al u e i s 2 , a n e r r o r h a s o c c u r r e d
Application isRenderEngine attribute
a p p . i s R e n d e r E n g i n e
Description
True if After Effects is running as a render engine.
Type
Boolean; read-only.
Application isWatchFolder attribute
a p p . i s W a t c h F o l d e r
Description
True if the Watch Folder dialog box is currently displayed and the application is currently watching a folder
for rendering.
Type
Boolean; read-only.
Application language attribute
a p p . l a n g u a g e
Description
The language After Effects is running.
Type
A
L a n g u a g e
enumerated value; read-only. One of:
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...