Skip to content

Production object

app.production

The Production object lets ExtendScript access and manipulate productions, insert projects, create new projects and bins, and move existing Production projects to Trash.


app.production.name

The name of the production.

String.


app.production.path

The path to the Production folder.

String.


app.production.projects

An array of the projects containined within the Production, which are currently open. Does not include non-open projects.

ProjectCollection object, read-only.


app.production.addProject(srcProjectPath, destProjectPath)

Copies a project from some other location, into the Production directory.

ParameterTypeDescription
srcProjectPathStringA path to the source project.
destProjectPathStringA destination path for added project.

Returns true if successful.


app.production.close()

Closes the Production, and all open projects from within that Production.

None.

Returns true if successful.


app.production.getLocked(project)

Returns the lock state of a single project within the Production.

ParameterTypeDescription
projectProject objectThe project

Returns true if the Project is locked, false if the Project is unlocked.


app.production.moveToTrash(projectOrFolderPath, suppressUI, saveProject)

Moves the specified path (“bin”) or .prproj into the Production’s Trash folder.

ParameterTypeDescription
projectOrFolderPathStringA path to the source project.
suppressUIBooleanWhether to suppress any resultant dialogues.
saveProjectBooleanWhether to save the project(s) first.

Returns true if successful.


app.production.setLocked(project,locked)

Sets the lock state of the specified project within the Production.

ParameterTypeDescription
projectProject objectThe project
lockedBooleanTrue for locked, false for unlocked.

Returns true if successful.