20
JavaScript Reference
Application object
20
Methods
Application activate() method
a p p . a c t i v a t e ( )
Description
Opens the application main window if it is minimized or iconified, and brings it to the front of the desktop.
Parameters
None.
Method
Reference
Description
n e w P r o j e c t ( )
“Application newProject() method” on
page 25
Creates a new project in After Effects.
o p e n ( )
“Application open() method” on page 26
Opens a project or an Open Project dialog box.
q u i t ( )
“Application quit() method” on page 28
Quits the application.
w a t c h F o l d e r ( )
“Application watchFolder() method” on
page 30
Starts Watch Folder mode; does not return
until Watch Folder mode is turned off.
p a u s e W a t c h F o l d e r ( )
“Application pauseWatchFolder() method”
on page 27
Pauses a current watch-folder process.
e n d W a t c h F o l d e r ( )
“Application endWatchFolder() method” on
page 23
Ends a current watch-folder process.
p u r g e ( )
“Application purge() method” on page 28
Purges a targeted type of cached information
(replicates Purge options in the Edit menu).
b e g in U n d o G r o u p ( )
“Application beginUndoGroup() method”
on page 21
Groups the actions that follow it into a single
undoable step.
e n d U n d o G r o u p ( )
“Application endUndoGroup() method” on
page 22
Ends an undo group; needed only when a
script contains more than one undo group.
b e g i n S u p p r e s s D i a l o g s ( )
“Application beginSuppressDialogs()
method” on page 21
Begins suppression of dialogs in the user inter-
face.
e n d S u p p r e s s D i a l o g s ( )
“Application endSuppressDialogs()
method” on page 22
Ends suppression of dialogs in the user inter-
face.
s e t M e m o r y U s a g e L i m i t s ( )
“Application setMemoryUsageLimits()
method” on page 29
Sets memory usage limits as in the Memory &
Cache preferences area.
s e t S a v e P r e f e r e n c e s O n Q u i t ( )
“Application setSavePreferencesOnQuit()
method” on page 29
Sets whether preferences are saved when the
application is quit.
a ct i v a t e ( )
“Application activate() method” on page 20 Brings the After Effects main window to the
front of the screen.
s c h e d u l e T a s k ( )
“Application scheduleTask() method” on
page 29
Schedules a JavaScript script for delayed exe-
cution.
c a n ce l T a s k ( )
“Application cancelTask() method” on
page 22
Cancels a scheduled task.
p a r s e S w a t c h F i l e ( )
“Application parseSwatchFile() method” on
page 27
Loads a color swatch from an Adobe Swatch
Exchange (ASE) file.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...