
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 93
crop
(bounds
[, angle]
[, width]
[, height])
array(UnitValue)
number (double)
UnitValue
UnitValue
Crops the document. The
first parameter is an array of
four coordinates that mark
the portion remaining after
cropping, in the following
order: left, top, right,
bottom.
Note:
For information
about the
UnitValue
type, see the
JavaScript Tools
Guide
.
duplicate
([name ]
[, mergeLayersOnly]
)
string
boolean
Document
Creates a duplicate of the
document
object.
The optional parameter
name
provides the name for
the duplicated document.
The optional parameter
mergeLayersOnly
indicates
whether to only duplicate
merged layers.
exportDocument
(exportIn
[, exportAs]
[, options])
File
ExportType
ExportOptionsIllustrator
or
ExportOptionsSaveForWeb
Exports the document.
Note:
For information
about the
File
object, see the
JavaScript Tools Guide
flatten
()
Flattens all layers.
flipCanvas
(direction)
Direction
Flips the image within the
canvas in the specified
direction.
importAnnotations
(file)
File
Imports annotations into
the document.
Note:
For information
about the
File
object, see the
JavaScript Tools Guide
mergeVisibleLayers
()
Flattens all visible layers in
the document.
Method
Parameter Type
Returns
What it does (Continued)