Length; Parent; Typename; Index - Adobe 19400084 - Photoshop CS3 Extended Manual

Javascript scripting reference
Table of Contents

Advertisement

JavaScript Scripting Reference

Documents

The collection of open
Note:
Because the
documents
documents.add(800, 500, 72, "myDocument", NewDocumentMode.RGB)
The following example, which uses an upper case D in the object name, is incorrect:
Documents.add(800, 500, 72, "myDocument", NewDocumentMode.RGB)

Properties

Property

length

parent

typename

Methods

Method

index

(itemKey)
add
([width]
[, height]
[, resolution]
[, name]
[, mode]
[, initialFill]
[,pixelAspectRatio]
[, bitsPerChannel]
[,colorProfileName])

getByName

(name)
Adobe Photoshop CS3
objects. See
document
class is a property of the
Documents
, rather than the class name,
Value Type
number (long)
object
(Application)
string
Parameter Type
number
UnitValue
UnitValue
number (double)
string
NewDocumentMode
DocumentFill
number (double)
BitsPerChannelTy
pe
string
string
for information on the
Document
Application
object, you use the property name,
, in your code, as in the following example:
Documents
What it is
Read-only. The number of elements in the
collection.
Read-only. The
documents
Read-only. The class name of the referenced
object.
Returns
What it does
Gets an element from the
Document
collection.
Adds a
Document
pixelAspectRatio
10.00. Default 1.0 for a square aspect
ratio.
bitsPerChannelType
value of
Note:
Gets the first element in the
Document
collection with the provided name
JavaScript Object Reference
object.
document
documents
objects' container.
documents
documents
object.
document
: range from 0.100 -
has a default
BitsPerChannelType.EIGHT
For information about the
type, see the
UnitValue
JavaScript Tools Guide.
documents
102
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs3

Table of Contents