Adobe 65009963 Scripting Manual page 29

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
Description
When true (the default), After Effects attempts to display a dialog box that allows you to save the current
project if an error causes the application to quit unexpectedly. Set to false to suppress this dialog box and quit
without saving.
Type
Boolean; read/write.
Application scheduleTask() method
a pp .s c h e du le T as k (s t r i n g T oE x e c u t e, de l a y, r e p ea t)
Description
Schedules the specified JavaScript for delayed execution.
Parameters
s tr in g T o E x e c u t e
A string containing JavaScript to be executed.
d e l a y
A number of milliseconds to wait before executing the JavaScript. A floating-point value.
re pe at
When true, execute the script repeatedly, with the specified delay between each execution. When false
the script is executed only once.
Returns
Integer, a unique identifier for this task, which can be used to cancel it with
Application setMemoryUsageLimits() method
a pp .s e t M e m o r y Us ag e L i m i ts (i m ag eC a ch eP e rce n t ag e, m ax i m u m M e m o r y P e r c en t a g e)
Description
Sets memory usage limits as in the Memory & Cache preferences area. For both values, if installed RAM is less
than a given amount (n gigabytes), the value is a percentage of the installed RAM, and is otherwise a
percentage of n. The value of n is: 2 Gb for Win32, 4 Gb for Win64, 3.5 Gb for Mac OS.
Parameters
i m a g eC a ch eP erc e n ta g e
m a x im u m M e m o r y P e r c e n t a g e
Returns
Nothing.
Application setSavePreferencesOnQuit() method
a pp .s e t S ave Pr e fe r e n c e sO n Q u i t(do Save )
Description
Set or clears the flag that determines whether preferences are saved when the application is closed.
Floating-point value, the percentage of memory assigned to image cache.
Floating-point value, the maximum usable percentage of memory.
Application object
29
.
a p p. c anc el Ta sk ( )
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents