Adobe 65009963 Scripting Manual page 25

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
L a n g u a g e . E N GL I SH
L a n g u a g e . F R E N C H
L a n g u a g e . G E R M A N
L a n g u a g e . I T AL I A N
L a n g u a g e . J A P A N E S E
L a n g u a g e . S P A N I S H
Example
v a r l a n g = a pp . l a n g u a g e ;
i f ( l a n g = = L a n g u a g e . E N G L I S H )
a l e r t (" A f t e r E f f e c ts i s r u n n i n g i n E n g l i s h . " ) ;
e l s e i f ( l a n g = = L a n g u a g e. F R E N C H )
a l e r t (" A f t e r E f f e c t s i s r un n i n g i n F r e n c h . " ) ;
e l s e
a l e r t (" A f t e r E f f e c ts i s n o t r u n n i n g i n E n g l i s h o r F r e n c h . " ) ;
Application memoryInUse attribute
a p p . m e m o r y I n U s e
Description
The number of bytes of memory currently used by this application.
Type
Number; read-only.
Application newProject() method
a pp .n e wP ro jec t ()
Description
Creates a new project in After Effects, replicating the File > New > New Project menu command.
If the current project has been edited, the user is prompted to save it. If the user cancels out of the Save dialog
box, the new project is not created and the method returns null. Use
t io n s. D O _ N O T _ SA VE _ C H A N G E S )
close() method" on page 111.
Parameters
None.
Returns
A new Project object, or null if no new project is created.
Example
a pp . p r o j e c t . c l o s e ( C l o s e Op t io n s . D O _ N O T _ S A V E _ C H A N G E S ) ;
a pp .n e wP ro jec t () ;
to close the current project before opening a new one. See "Project
Application object
a pp . p r o je c t .c l o s e ( C l o s e O p -
25
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents