Specifications
Table Of Contents
- Introduction
- JavaScript Object Reference
- Object descriptions
- ActionDescriptor
- Properties
- Methods
- clear
- erase
- fromStream
- getBoolean
- getClass
- getData
- getDouble
- getEnumerationType
- getEnumerationValue
- getInteger
- getKey
- getLargeInteger
- getList
- getObjectType
- getObjectValue
- getPath
- getReference
- getString
- getType
- getUnitDoubleType
- getUnitDoubleValue
- hasKey
- isEqual
- putBoolean
- putClass
- putData
- putDouble
- putEnumerated
- putInteger
- putLargeInteger
- putList
- putObject
- putPath
- putReference
- putString
- putUnitDouble
- toStream
- ActionList
- Properties
- Methods
- clear
- getBoolean
- getClass
- getData
- getDouble
- getEnumerationType
- getEnumerationValue
- getInteger
- getLargeInteger
- getList
- getObjectType
- getObjectValue
- getPath
- getReference
- getString
- getType
- getUnitDoubleType
- getUnitDoubleValue
- putBoolean
- putClass
- putData
- putDouble
- putEnumerated
- putInteger
- putLargeInteger
- putList
- putObject
- putPath
- putReference
- putString
- putUnitDouble
- ActionReference
- Application
- Properties
- activeDocument
- backgroundColor
- build
- colorSettings
- displayDialogs
- documents
- fonts
- foregroundColor
- freeMemory
- locale
- macintoshFileTypes
- measurementLog
- name
- notifiers
- notifiersEnabled
- path
- playbackDisplayDialogs
- playbackParameters
- preferences
- preferencesFolder
- recentFiles
- scriptingBuildDate
- scriptingVersion
- systemInformation
- typename
- version
- windowsFileTypes
- Methods
- batch
- beep
- bringToFront
- charIDToTypeID
- doAction
- eraseCustomOptions
- executeAction
- executeActionGet
- featureEnabled
- getCustomOptions
- isQuicktimeAvailable
- load
- makeContactSheet
- makePDFPresentation
- makePhotoGallery
- makePhotomerge
- makePicturePackage
- open
- openDialog
- purge
- putCustomOptions
- refresh
- refreshFonts
- runMenuItem
- showColorPicker
- stringIDToTypeID
- togglePalettes
- typeIDToCharID
- typeIDToStringID
- Properties
- ArtLayer
- Properties
- Methods
- adjustBrightnessContrast
- adjustColorBalance
- adjustCurves
- adjustLevels
- applyAddNoise
- applyAverage
- applyBlur
- applyBlurMore
- applyClouds
- applyCustomFilter
- applyDeInterlace
- applyDespeckle
- applyDifferenceClouds
- applyDiffuseGlow
- applyDisplace
- applyDustAndScratches
- applyGaussianBlur
- applyGlassEffect
- applyHighPass
- applyLensBlur
- applyLensFlare
- applyMaximum
- applyMedianNoise
- applyMinimum
- applyMotionBlur
- applyNTSC
- applyOceanRipple
- applyOffset
- applyPinch
- applyPolarCoordinates
- applyRadialBlur
- applyRipple
- applySharpen
- applySharpenEdges
- applySharpenMore
- applyShear
- applySmartBlur
- applySpherize
- applyStyle
- applyTextureFill
- applyTwirl
- applyUnSharpMask
- applyWave
- applyZigZag
- autoContrast
- autoLevels
- clear
- copy
- cut
- desaturate
- duplicate
- equalize
- invert
- link
- merge
- mixChannels
- move
- photoFilter
- posterize
- rasterize
- remove
- resize
- rotate
- selectiveColor
- shadowHighlight
- threshold
- translate
- unlink
- ArtLayers
- BatchOptions
- BitmapConversionOptions
- BMPSaveOptions
- CameraRAWOpenOptions
- Properties
- bitsPerChannel
- blueHue
- blueSaturation
- brightness
- chromaticAberrationBY
- chromaticAberrationRC
- colorNoiseReduction
- colorSpace
- contrast
- exposure
- greenHue
- greenSaturation
- luminanceSmoothing
- redHue
- redSaturation
- resolution
- saturation
- settings
- shadows
- shadowTint
- sharpness
- size
- temperature
- tint
- typename
- vignettingAmount
- vignettingMidpoint
- whiteBalance
- Properties
- Channel
- Channels
- CMYKColor
- ColorSampler
- ColorSamplers
- ContactSheetOptions
- CountItem
- CountItems
- DCS1_SaveOptions
- DCS2_SaveOptions
- DICOMOpenOptions
- Document
- Properties
- activeChannels
- activeHistoryBrushSource
- activeHistoryState
- activeLayer
- artLayers
- backgroundLayer
- bitsPerChannel
- channels
- colorProfileName
- colorProfileType
- colorSamplers
- componentChannels
- countItems
- fullName
- guides
- height
- histogram
- historyStates
- info
- layerComps
- layers
- layerSets
- managed
- measurementScale
- mode
- name
- parent
- path
- pathItems
- pixelAspectRatio
- printSettings
- quickMaskMode
- resolution
- saved
- selection
- typename
- width
- xmpMetadata
- Methods
- Properties
- DocumentPrintSettings
- DocumentInfo
- Documents
- EPSOpenOptions
- EPSSaveOptions
- ExportOptionsIllustrator
- ExportOptionsSaveForWeb
- File
- Folder
- GalleryBannerOptions
- GalleryCustomColorOptions
- GalleryImagesOptions
- GalleryOptions
- GallerySecurityOptions
- GalleryThumbnailOptions
- GIFSaveOptions
- GrayColor
- Guide
- Guides
- HistoryState
- HistoryStates
- HSBColor
- IndexedConversionOptions
- JPEGSaveOptions
- LabColor
- LayerComp
- LayerComps
- Layers
- LayerSet
- LayerSets
- MeasurementLog
- MeasurementScale
- NoColor
- Notifier
- Notifiers
- PathItem
- PathItems
- PathPoint
- PathPointInfo
- PathPoints
- PDFOpenOptions
- PDFSaveOptions
- Properties
- alphaChannels
- annotations
- colorConversion
- convertToEightBit
- description
- destinationProfile
- downgradeColorProfile
- downSample
- downSampleSize
- downSampleSizeLimit
- embedColorProfile
- embedFonts
- embedThumbnail
- encoding
- interpolation
- jpegQuality
- layers
- optimizeForWeb
- outputCondition
- outputConditionID
- PDFCompatibility
- PDFStandard
- preserveEditing
- presetFile
- profileInclusionPolicy
- registryName
- spotColors
- tileSize
- transparency
- typename
- useOutlines
- vectorData
- view
- Properties
- PhotoCDOpenOptions
- PhotoshopSaveOptions
- PICTFileSaveOptions
- PICTResourceSaveOptions
- PicturePackageOptions
- PixarSaveOptions
- PNGSaveOptions
- Preferences
- Properties
- additionalPluginFolder
- appendExtension
- askBeforeSavingLayeredTIFF
- autoUpdateOpenDocuments
- beepWhenDone
- colorChannelsInColor
- colorPicker
- columnGutter
- columnWidth
- createFirstSnapshot
- dynamicColorSliders
- editLogItems
- exportClipboard
- fontPreviewSize
- fullSizePreview
- gamutWarningOpacity
- gridSize
- gridStyle
- gridSubDivisions
- guideStyle
- iconPreview
- imageCacheLevels
- imagePreviews
- interpolation
- keyboardZoomResizesWindows
- macOSThumbnail
- maximizeCompatibility
- maxRAMuse
- nonLinearHistory
- numberofHistoryStates
- otherCursors
- paintingCursors
- parent
- pixelDoubling
- pointSize
- recentFileListLength
- rulerUnits
- saveLogItems
- saveLogItemsFile
- savePaletteLocations
- showAsianTextOptions
- showEnglishFontNames
- showSliceNumber
- showToolTips
- smartQuotes
- textFontSize
- typename
- typeUnits
- useAdditionalPluginFolder
- useHistoryLog
- useLowerCaseExtension
- useShiftKeyForToolSwitch
- useVideoAlpha
- windowsThumbnail
- Properties
- PresentationOptions
- RawFormatOpenOptions
- RawSaveOptions
- RGBColor
- Selection
- SGIRGBSaveOptions
- SolidColor
- SubPathInfo
- SubPathItem
- SubPathItems
- TargaSaveOptions
- TextFont
- TextFonts
- TextItem
- Properties
- alternateLigatures
- antiAliasMethod
- autoKerning
- autoLeadingAmount
- baselineShift
- capitalization
- color
- contents
- desiredGlyphScaling
- desiredLetterScaling
- desiredWordScaling
- direction
- fauxBold
- fauxItalic
- firstLineIndent
- font
- hangingPunctuation
- height
- horizontalScale
- hyphenateAfterFirst
- hyphenateBeforeLast
- hyphenateCapitalWords
- hyphenateWordsLongerThan
- hyphenation
- hyphenationZone
- hyphenLimit
- justification
- kind
- language
- leading
- leftIndent
- ligatures
- maximumGlyphScaling
- maximumLetterScaling
- maximumWordScaling
- minimumGlyphScaling
- minimumLetterScaling
- minimumWordScaling
- noBreak
- oldStyle
- parent
- position
- rightIndent
- size
- spaceAfter
- spaceBefore
- strikeThru
- textComposer
- tracking
- typename
- underline
- useAutoLeading
- verticalScale
- warpBend
- warpDirection
- warpHorizontalDistortion
- warpStyle
- warpVerticalDistortion
- width
- Methods
- Properties
- TiffSaveOptions
- UnitValue
- xmpMetadata
- JavaScript Resource
- Scripting Constants
- AdjustmentReference
- AnchorPosition
- AntiAlias
- AutoKernType
- BatchDestinationType
- BitmapConversionType
- BitmapHalfToneType
- BitsPerChannelType
- BlendMode
- BMPDepthType
- ByteOrder
- CameraRAWSettingsType
- CameraRAWSize
- ChangeMode
- ChannelType
- ColorBlendMode
- ColorModel
- ColorPicker
- ColorProfileType
- ColorReductionType
- ColorSpaceType
- CopyrightedType
- CreateFields
- CropToType
- DCSType
- DepthMapSource
- DescValueType
- DialogModes
- Direction
- DisplacementMapType
- Dither
- DocPositionStyle
- DocumentFill
- DocumentMode
- EditLogItemsType
- ElementPlacement
- EliminateFields
- ExportType
- Extension
- FileNamingType
- FontPreviewType
- FontSize
- ForcedColors
- FormatOptions
- GalleryConstrainType
- GalleryFontType
- GallerySecurityTextColorType
- GallerySecurityTextPositionType
- GallerySecurityTextRotateType
- GallerySecurityType
- GalleryThumbSizeType
- Geometry
- GridLineStyle
- GridSize
- GuideLineStyle
- IllustratorPathType
- Intent
- Justification
- Language
- LayerCompression
- LayerKind
- LensType
- MagnificationType
- MatteType
- MeasurementRange
- MeasurementSource
- NewDocumentMode
- NoiseDistribution
- OffsetUndefinedAreas
- OpenDocumentMode
- OpenDocumentType
- OperatingSystem
- Orientation
- OtherPaintingCursors
- PaintingCursors
- PaletteType
- PathKind
- PDFCompatibility
- PDFEncoding
- PDFResample
- PDFStandard
- PhotoCDColorSpace
- PhotoCDSize
- PICTBitsPerPixels
- PICTCompression
- PicturePackageTextType
- PointKind
- PointType
- PolarConversionType
- Preview
- PrintColorHandling
- PurgeTarget
- QueryStateType
- RadialBlurMethod
- RadialBlurQuality
- RasterizeType
- ReferenceFormType
- ResampleMethod
- RippleSize
- SaveBehavior
- SaveDocumentType
- SaveEncoding
- SaveLogItemsType
- SaveOptions
- SelectionType
- ShapeOperation
- SmartBlurMode
- SmartBlurQuality
- SourceSpaceType
- SpherizeMode
- StrikeThruType
- StrokeLocation
- TargaBitsPerPixels
- TextCase
- TextComposer
- TextType
- TextureType
- TIFFEncoding
- ToolType
- TransitionType
- TrimType
- TypeUnits
- UndefinedAreas
- UnderlineType
- Units
- Urgency
- WarpStyle
- WaveType
- WhiteBalanceType
- ZigZagType
- Appendix A: Event ID Codes
- Index

Adobe Photoshop CS6
JavaScript Scripting Reference Scripting Constants 214
TrimType
BOTTOMRIGHT
TOPLEFT
TRANSPARENT
Type of pixels to trim around an
image, passed to Document
.trim().:
BOTTOMRIGHT = bottom right pixel
color.
TOPLEFT = top left pixel color.
TypeUnits
MM
PIXELS
POINTS
The preferred unit for text character
measurements, set in Preferences
.
UndefinedAreas
REPEATEDGEPIXELS
WRAPAROUND
The method to use to treat
undistorted areas or areas left blank in
an image to which the a filter in the
Distort category has been applied.
Pass to ArtLayer
.applyDisplace(),
applyShear
(), applyWave().
UnderlineType
UNDERLINELEFT
UNDERLINEOFF
UNDERLINERIGHT
The placement of text underlining.
Used in TextItem
.underline.
Note:
UNDERLINELEFT and
UNDELINERIGHT are valid only when
direction = Direction.VERTICAL.
Units
CM
INCHES
MM
PERCENT
PICAS
PIXELS
POINTS
The preferred measurement unit for
type and ruler increments, set in
Preferences
.rulerUnits.
Urgency
FOUR
HIGH
LOW
NONE
NORMAL
SEVEN
SIX
THREE
TWO
The editorial urgency status of a
document, set in
DocumentPrintSettings
.urgency.
WarpStyle
ARC
ARCH
ARCLOWER
ARCUPPER
BULGE
FISH
FISHEYE
FLAG
INFLATE
NONE
RISE
SHELLLOWER
SHELLUPPER
SQUEEZE
TWIST
WAVE
The warp style to use for text. Used in
TextItem
.warpStyle.
Constant type Values What it means










