Activedocument; Backgroundcolor; Colorsettings; Displaydialogs - Adobe 19400084 - Photoshop CS3 Extended Manual

Javascript scripting reference
Table of Contents

Advertisement

JavaScript Scripting Reference

Application

The Adobe Adobe Photoshop CS3 application object, which contains all other Adobe Photoshop CS3
objects.
Note:
Because you open JavaScripts through the application itself, you do not need to use the
Application
However, if you choose to include the
pre-defined global object name
following sample:
var docRef = app.documents.add(800, 600, 72, "docRef", NewDocumentMode.RGB)
The following sample uses the
var docRef = Application.documents.add(800, 600, 72, "docRef",
NewDocumentMode.RGB)
However, the most common way to add an element in your code is to omit references to the
Application
var docRef = documents.add(800, 600, 72, "docRef", NewDocumentMode.RGB)

Properties

Property

activeDocument

backgroundColor

colorSettings

displayDialogs

documents

fonts

foregroundColor

freeMemory

locale

macintoshFileTypes

measurementLog

Adobe Photoshop CS3
object as part of the containment hierarchy that describes an object.
, rather than the class name
app
Application
object altogether, as in the following sample:
Value Type
Document
SolidColor
String
DialogModes
Documents
TextFonts
SolidColor
number (double)
string
array of strings
MeasurementLog
object in your code, you must use the
Application
object incorrectly:
What it is
Read-write. The frontmost document. (Setting this
property is equivalent to clicking an open
document in the Adobe Photoshop CS3
application to bring it to the front of the screen.)
Read-write. The color mode for the document's
background color.
Read-write. The name of selected color setting's set.
Read-write. The dialog mode for the document,
which indicates whether or not Adobe
Photoshop CS3 displays dialogs when the script
runs.
Read-only. The collection of open documents.
Read-only. The fonts installed on this system.
Read-write. The default foreground color (used to
paint, fill, and stroke selections).
Read-only. The amount of unused memory
available to Adobe Photoshop CS3.
Read-only. The language location of the
application.
Read-only. A list of file image types Adobe
Photoshop CS3 can open.
The log of measurements taken.
JavaScript Object Reference
, in a script, as in the
Application
45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs3

Table of Contents