importFile()

app.project.importFile(importOptions)

Description

Imports the file specified in the specified ImportOptions object, using the specified options. Same as the File > Import File command. Creates and returns a new FootageItem object from the file, and adds it to the project’s items array.

Parameters

importOptions An ImportOptions object specifying the file to import and the options for the operation. See ImportOptions object”.

Returns

FootageItem object.

Example

app.project.importFile(new ImportOptions(File("sample.psd")) "

Other Tags

Posted in Project object and tagged , , , , , , , .