newProject()

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 t

frameDuration

Returns the lengthof a frame for this AVItem, in seconds. This is the reciprocal of frameRate. When set, the reciprocal is automatically set as a new frameR

close()

Closes the project with the option of saving changes automatically, prompting the user to save changes or closing without saving changes.closeOptions Action

Project object

The project object represents an After Effects project. Attributes provide access to specific objects within the project, such as imported files or footage

onError

The name of a callback function that is called when an error occurs. By creating a function and assigning it to this attribute, you can respond to errors sy

endUndoGroup()

Marks the end of an undo group begun with the app.beginUndoGroup method. You can use this method to place an end to an undo group in the middle of a script,