
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 158
Preferences
Options to define for the
preferences
property of the
app
object. See
preferencesFolder
(in the
Properties table for the
app
object).
Note:
Because the
Preferences
class is a property of the
Application
object, you use the property name,
preferences
, rather than the class name,
Preferences
, in your code. For example:
app.preferences.rulerUnits = Units.PIXELS
app.preferences.typeUnits = TypeUnits.PIXELS
The following code incorrectly uses an upper case
P
:
app.Preferences.rulerUnits = Units.PIXELS
app.Preferences.typeUnits = TypeUnits.PIXELS
Note:
Defining the
preferences
properties is basically equivalent to selecting Edit > Preferences
(Windows) or Photoshop > Preferences in the Adobe Photoshop CS3 application. For explanations
of individual settings, please refer to Adobe Photoshop CS3 Help.
Properties
Property
Value Type
What it is
additionalPluginFolder
File
Read-write. The path to an additional
plug-in folder.
Note:
Valid only when
useAdditionalPluginFolder =
true
. See
useAdditionalPluginFolder
.
Note:
For information about the File
object, see the
JavaScript Tools
Guide
appendExtension
SaveBehavior
Read-write. Save files with extensions on
Windows.
askBeforeSavingLayeredTIFF
boolean
Read-write. Indicates whether to ask the
user to verify layer preservation options
when saving a file in TIFF format.
autoUpdateOpenDocuments
boolean
Read-write. Indicates whether to
automatically update open documents.
beepWhenDone
boolean
Read-write. Indicates whether to beep
when a process finishes.
colorChannelsInColor
boolean
Read-write. Indicates whether to display
component channels in the Channels
palette in color.
colorPicker
ColorPicker
Read-write.
columnGutter
number (double)
Read-write. The width of the column
gutters (in points). (0.1 - 600.0).