Adobe 19400084 - Photoshop CS3 Extended Manual

Javascript scripting reference
Table of Contents

Advertisement

JAVASCRIPT SCRIPTING REFERENCE
b b
c

Advertisement

Table of Contents
loading

Summary of Contents for Adobe 19400084 - Photoshop CS3 Extended

  • Page 1 JAVASCRIPT SCRIPTING REFERENCE...
  • Page 2 Macintosh NOTICE: All information contained herein is the property of Adobe Systems Incorporated. No part of this publication (whether in hardcopy or electronic form) may be reproduced or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Adobe Systems Incorporated.
  • Page 3: Table Of Contents

    Contents Introduction ..........................31 JavaScript support in Adobe Photoshop CS3 ........................31 Executing scripts ..................................31 Installing scripts ................................32 Executing other scripts ..............................32 Startup scripts ..................................32 Changes Since Earlier Versions..............................32 JavaScript Object Reference ..................... 35 Working with the Properties Tables ............................35 displayDialogs.................................35 Working with the Methods Tables ............................35...
  • Page 4 Adobe Photoshop CS3 JavaScript Scripting Reference putInteger ..................................38 putList ....................................39 putObject..................................39 putPath....................................39 putReference...................................39 putString...................................39 putUnitDouble................................39 toStream ...................................39 ActionList......................................40 Properties....................................40 count ....................................40 typename ..................................40 Methods ....................................40 clear ....................................40 getBoolean..................................40 getClass .....................................40 getData....................................40 getDouble ..................................40 getEnumerationType ..............................40 getEnumerationValue..............................40 getInteger..................................40 getList ....................................40 getObjectType................................40 getObjectValue................................41...
  • Page 5 Adobe Photoshop CS3 JavaScript Scripting Reference getIdentifier..................................43 getIndex....................................43 getName ...................................43 getOffset ...................................43 getProperty..................................43 putClass.....................................43 putEnumerated ................................44 putIdentifier..................................44 putIndex....................................44 putName...................................44 putOffset...................................44 putProperty..................................44 Application .....................................45 Properties....................................45 activeDocument................................45 backgroundColor................................45 colorSettings ...................................45 displayDialogs.................................45 documents ..................................45 fonts....................................45 foregroundColor ................................45 freeMemory ..................................45 locale ....................................45 macintoshFileTypes..............................45 measurementLog ................................45 name....................................46...
  • Page 6 Adobe Photoshop CS3 JavaScript Scripting Reference makeContactSheet................................48 makePDFPresentation ..............................48 makePhotoGallery.................................48 makePhotomerge................................48 makePicturePackage ..............................48 open ....................................49 openDialog ..................................49 purge....................................49 putCustomOptions ...............................49 refresh....................................49 stringIDToTypeID................................49 typeIDToCharID................................50 typeIDToStringID ................................50 ArtLayer......................................53 Properties....................................53 allLocked...................................53 blendMode..................................53 bounds....................................53 fillOpacity..................................53 grouped ....................................53 isBackgroundLayer................................53 kind .....................................53 linkedLayers..................................54 name....................................54 opacity ....................................54 parent....................................54...
  • Page 7 Adobe Photoshop CS3 JavaScript Scripting Reference applyHighPass ................................56 applyLensBlur .................................57 applyLensFlare................................57 applyMaximum ................................58 applyMedianNoise ................................58 applyMinimum ................................58 applyMotionBlur ................................58 applyNTSC..................................58 applyOceanRipple .................................58 applyOffset..................................58 applyPinch ..................................58 applyPolarCoordinates..............................58 applyRadialBlur ................................58 applyRipple..................................58 applySharpen..................................58 applySharpenEdges..............................59 applySharpenMore ...............................59 applyShear ..................................59 applySmartBlur................................59 applySpherize .................................59 applyStyle..................................59 applyTextureFill................................59 applyTwirl..................................59...
  • Page 8 Adobe Photoshop CS3 JavaScript Scripting Reference Properties....................................65 length....................................65 parent....................................65 typename ..................................65 Methods ....................................65 index....................................65 add ......................................65 getByName ..................................65 removeAll ..................................65 BatchOptions ....................................66 Properties....................................66 destination ..................................66 destinationFolder ................................66 errorFile .....................................66 fileNaming..................................66 macintoshCompatible ..............................66 overrideOpen..................................66 overrideSave..................................67 startingSerial ...................................67 suppressOpen.................................67 suppressProfile ................................67 typename ..................................67 unixCompatible................................67...
  • Page 9 Adobe Photoshop CS3 JavaScript Scripting Reference contrast .....................................70 exposure ...................................70 greenHue..................................70 greenSaturation ................................70 luminanceSmoothing ..............................70 redHue ....................................70 redSaturation ..................................70 resolution..................................70 saturation ..................................70 settings....................................70 shadows ....................................70 shadowTint ..................................71 sharpness..................................71 size ......................................71 temperature..................................71 tint.......................................71 typename ..................................71 vignettingAmount ................................71 vignettingMidpoint ..............................71 whiteBalance...................................71 Channel......................................72 Properties....................................72...
  • Page 10 Adobe Photoshop CS3 JavaScript Scripting Reference ColorSampler ....................................80 Properties....................................80 color....................................80 position .....................................80 parent....................................80 typename ..................................80 Methods ....................................80 move....................................80 remove....................................80 ColorSamplers ....................................81 Properties....................................81 length....................................81 parent....................................81 typename ..................................81 Methods ....................................81 index....................................81 add ......................................81 getByName ..................................81 removeAll ..................................81 ContactSheetOptions .................................82 Properties....................................82 acrossFirst..................................82 bestFit ....................................82 caption....................................82...
  • Page 11 Adobe Photoshop CS3 JavaScript Scripting Reference add ......................................85 getByName ..................................85 removeAll ..................................85 DCS1_SaveOptions..................................86 Properties....................................86 dCS ......................................86 embedColorProfile................................86 encoding...................................86 halftoneScreen ................................86 interpolation..................................86 preview....................................86 transferFunction................................86 typename ..................................86 vectorData..................................86 DCS2_SaveOptions..................................87 Properties....................................87 dCS ......................................87 embedColorProfile................................87 encoding...................................87 halftoneScreen ................................87 interpolation..................................87 multiFileDCS..................................87 preview....................................87 spotColors ..................................87 transferFunction................................87 typename ..................................87...
  • Page 12 Adobe Photoshop CS3 JavaScript Scripting Reference countItems ..................................90 fullName....................................90 height....................................90 histogram ..................................90 historyStates..................................90 info ......................................90 layerComps ..................................90 layers ....................................90 layerSets....................................90 managed...................................90 measurementScale ...............................90 mode ....................................90 name....................................90 parent....................................91 path.....................................91 pathItems ..................................91 pixelAspectRatio ................................91 quickMaskMode................................91 resolution..................................91 saved ....................................91 selection....................................91 typename ..................................91 width ....................................91 xmpMetadata..................................91...
  • Page 13 Adobe Photoshop CS3 JavaScript Scripting Reference Properties....................................98 author ....................................98 authorPosition ................................98 caption....................................98 captionWriter ..................................98 category ....................................98 city.......................................98 copyrighted ..................................98 copyrightNotice ................................98 country ....................................98 creationDate..................................98 credit ....................................98 exif.......................................98 headline ....................................98 instructions ..................................98 jobName ...................................98 keywords...................................98 ownerUrl ...................................99 parent....................................99 provinceState..................................99 source....................................99 supplementalCategories.............................99 title ......................................99...
  • Page 14 Adobe Photoshop CS3 JavaScript Scripting Reference psColorManagement ..............................104 transferFunction................................104 transparentWhites..............................104 typename ..................................104 vectorData..................................104 ExportOptionsIllustrator ................................. 105 Properties....................................105 path....................................105 pathName..................................105 typename ..................................105 ExportOptionsSaveForWeb ..............................106 Properties....................................106 blur....................................106 colorReduction ................................106 colors....................................
  • Page 15 Adobe Photoshop CS3 JavaScript Scripting Reference caption.................................... 110 dimension..................................110 font....................................110 fontSize................................... 110 imageQuality................................110 includeCopyright................................ 110 includeCredits................................110 includeFilename................................111 includeTitle ................................... 111 numericLinks ................................111 resizeConstraint ................................111 resizeImages................................. 111 typename ..................................111 GalleryOptions.................................... 112 Properties....................................112 addSizeAttributes...............................
  • Page 16 Adobe Photoshop CS3 JavaScript Scripting Reference rowCount..................................114 size ....................................114 typename ..................................114 GIFSaveOptions..................................115 Properties....................................115 colors....................................115 dither....................................115 ditherAmount ................................115 forced ....................................115 interlaced..................................115 matte....................................115 palette..................................... 115 preserveExactColors ..............................115 transparency................................. 116 typename ..................................116 GrayColor......................................
  • Page 17 Adobe Photoshop CS3 JavaScript Scripting Reference Properties....................................122 embedColorProfile..............................122 formatOptions ................................122 matte....................................122 quality ..................................... 122 scans....................................122 typename ..................................122 LabColor ....................................... 123 Properties....................................123 a......................................123 b ......................................123 l......................................123 typename ..................................123 LayerComp....................................124 Properties....................................
  • Page 18 Adobe Photoshop CS3 JavaScript Scripting Reference blendMode..................................128 bounds.................................... 128 enabledChannels................................ 128 layers ....................................128 layerSets..................................128 linkedLayers.................................. 128 name....................................128 opacity .................................... 128 parent....................................128 typename ..................................128 visible ....................................128 Methods ....................................129 duplicate ..................................129 link....................................129 merge....................................
  • Page 19 Adobe Photoshop CS3 JavaScript Scripting Reference remove.................................... 136 Notifiers......................................137 Properties....................................137 length....................................137 parent....................................137 typename ..................................137 Methods ....................................138 index....................................138 add ....................................138 removeAll ..................................138 PathItem ....................................... 139 Properties....................................139 kind ....................................139 name....................................139 parent....................................
  • Page 20 Adobe Photoshop CS3 JavaScript Scripting Reference PathPoints....................................146 Properties....................................146 length....................................146 parent....................................146 typename ..................................146 Methods ....................................146 index....................................146 PDFOpenOptions ..................................147 Properties....................................147 antiAlias..................................147 bitsPerChannel ................................147 constrainProportions ..............................147 cropPage..................................147 height....................................147 mode ....................................147 name....................................
  • Page 21 Adobe Photoshop CS3 JavaScript Scripting Reference tileSize..................................... 149 transparency................................. 149 typename ..................................149 useOutlines ................................... 149 vectorData..................................150 view....................................150 PhotoCDOpenOptions ................................151 Properties....................................151 colorProfileName................................ 151 colorSpace..................................151 orientation..................................151 pixelSize ..................................151 resolution..................................151 typename ..................................151 PhotoshopSaveOptions ................................152 Properties....................................
  • Page 22 Adobe Photoshop CS3 JavaScript Scripting Reference textRotate..................................155 typename ..................................155 PixarSaveOptions ..................................156 Properties....................................156 alphaChannels ................................156 typename ..................................156 PNGSaveOptions ..................................157 Properties....................................157 interlaced..................................157 typename ..................................157 Preferences ....................................158 Properties....................................158 additionalPluginFolder............................. 158 appendExtension................................ 158 askBeforeSavingLayeredTIFF..........................
  • Page 23 Adobe Photoshop CS3 JavaScript Scripting Reference savePaletteLocations ..............................161 showAsianTextOptions ............................161 showEnglishFontNames ............................161 showSliceNumber ..............................161 showToolTips ................................161 smartQuotes................................. 161 typename ..................................161 typeUnits ..................................161 useAdditionalPluginFolder ............................. 161 useHistoryLog ................................161 useLowerCaseExtension ............................161 useShiftKeyForToolSwitch............................161 useVideoAlpha ................................
  • Page 24 Adobe Photoshop CS3 JavaScript Scripting Reference parent....................................166 solid ....................................166 typename ..................................166 Methods ....................................166 clear ....................................166 contract ..................................166 copy ....................................166 cut..................................... 166 deselect ..................................166 expand.................................... 166 feather..................................... 166 fill ...................................... 167 grow ....................................167 invert ....................................
  • Page 25 Adobe Photoshop CS3 JavaScript Scripting Reference typename ..................................173 SubPathItem....................................174 Properties....................................174 closed....................................174 operation ..................................174 parent....................................174 pathPoints ..................................174 typename ..................................174 SubPathItems....................................175 Properties....................................175 length....................................175 parent....................................175 typename ..................................175 Methods ....................................175 index....................................
  • Page 26 Adobe Photoshop CS3 JavaScript Scripting Reference fauxBold ..................................180 fauxItalic..................................180 firstLineIndent................................180 font....................................180 hangingPunctuation ..............................180 height....................................181 horizontalScale................................181 hyphenateAfterFirst..............................181 hyphenateBeforeLast..............................181 hyphenateCapitalWords ............................181 hyphenateWordsLongerThan..........................181 hyphenation ................................. 181 hyphenationZone............................... 181 hyphenLimit ................................. 181 justification ................................... 181 kind ....................................
  • Page 27 Adobe Photoshop CS3 JavaScript Scripting Reference Properties....................................186 alphaChannels ................................186 annotations................................... 186 byteOrder ..................................186 embedColorProfile..............................186 imageCompression..............................186 interleaveChannels ..............................186 jpegQuality ................................... 186 layerCompression............................... 186 layers ....................................186 saveImagePyramid..............................186 spotColors ..................................186 transparency................................. 186 typename ..................................186 xmpMetadata .....................................
  • Page 28 Adobe Photoshop CS3 JavaScript Scripting Reference Dither ....................................192 DocumentFill................................192 DocumentMode................................192 EditLogItemsType............................... 192 ElementPlacement..............................192 EliminateFields ................................192 ExportType..................................192 Extension ..................................192 FileNamingType ................................193 FontPreviewType................................ 193 ForcedColors ................................193 FormatOptions ................................193 GalleryConstrainType..............................193 GalleryFontType................................193 GallerySecurityTextColorType ..........................
  • Page 29 Adobe Photoshop CS3 JavaScript Scripting Reference PhotoCDSize................................. 198 PICTBitsPerPixels................................. 198 PICTCompression................................ 198 PicturePackageTextType............................198 PointKind ..................................198 PointType ..................................198 PolarConversionType ..............................199 Preview................................... 199 PrintEncoding ................................199 PurgeTarget .................................. 199 QueryStateType................................199 RadialBlurMethod............................... 199 RadialBlurQuality ................................ 199 RasterizeType ................................199 ReferenceFormType ..............................
  • Page 30 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource Syntax ..............................204 Basic JavaScript Resource Example ..........................205 Enable Info Grammar ................................205 Undefined Values in Enable Info Evaluation ......................207 Using the “in” Function..............................208 Action Manager Automation ..............................208 Terminology Dictionary..............................
  • Page 31: Executing Scripts

    For details of these and additional features, see the JavaScript Tools Guide CS3. Executing scripts The Adobe Photoshop CS3 interface includes a Scripts menu (File > Scripts) which provides quick and easy access to your JavaScripts. Scripts can be listed directly as menu items that run when you select them,...
  • Page 32: Installing Scripts

    On Mac OS, the startup folder for user-defined scripts is: ● ~/Library/Application Support/Adobe/Startup Scripts CS3/Adobe Photoshop If a script is meant to be executed only by Adobe Photoshop CS3, it must include code such as the following: if( BridgeTalk.appName == "photoshop" ) { //continue executing script For additional details, see the JavaScript Tools Guide CS3.
  • Page 33 Introduction On Mac OS, the document can be found in the following folder: ● Applications/Utilities/Adobe Utilities/ExtendScript Toolkit 2/SDK Documentation that provides an overview of Scripting is now found in a new document entitled ● Introduction to Scripting, instead of in the Photoshop CS3 Scripting Guide.
  • Page 34 Adobe Photoshop CS3 JavaScript Scripting Reference Introduction have been added to the enumeration. ● PHOTOFILTER EXPOSURE LayerKind has been added to the enumeration. ● DICOM OpenDocumentType Bug fixes Fixed property on object. ● bounds Selection Fixed method it now returns the ●...
  • Page 35: Displaydialogs

    JavaScript Object Reference The objects of CameraRAW, the JavaScript type library for Adobe® Photoshop® CS3, are presented alphabetically and in tabular format in this chapter. Object properties and methods are described in separate tables for each object. See Working with the...
  • Page 36: Executeaction

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does Plays an event. ActionDescriptor executeAction ActionManager number (long) (eventID ActionDescriptor [, descriptor] DialogModes [, displayDialogs]) Working with Method Parameters Optional parameters are surrounded by square brackets ( [ ] ). In the following Methods table sample, the...
  • Page 37: Properties

    JavaScript Scripting Reference JavaScript Object Reference ActionDescriptor A record of key-value pairs for actions, such as those included on the Adobe Photoshop CS3 Actions menu. Note: class is part of the Action Manager functionality. For more details on the ActionDescriptor Action Manager, see the Photoshop CS3 Scripting Guide.
  • Page 38: Getobjecttype

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Gets the class ID of an object in a getObjectType number (long) number (long) key of type object. (key) Gets the value of a key of type...
  • Page 39: Putlist

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Sets the value for a key whose type putList number (long) is an object. (key, ActionList ActionList value) Sets the value for a key whose type...
  • Page 40: Count

    JavaScript Object Reference ActionList The list of commands that comprise an Action (such as an Action created using the Actions palette in the Adobe Photoshop CS3 application). Note: object is part of the Action Manager functionality. For details on using the Action ActionList Manager, see the Photoshop CS3 Scripting Guide.
  • Page 41: Getobjectvalue

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Gets the value of a list item of type getObjectValue ActionDescriptor number (long) object. (index) Gets the value of a list item of type...
  • Page 42: Putreference

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Sets the value of a list item whose putReference ActionReference type a reference to an object (value) created in the script. Sets the value of a list item of type...
  • Page 43: Typename

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference ActionReference Contains data describing a referenced Action. Note: object is part of the Action Manager functionality. For details on using the ActionReference Action Manager, see the Photoshop CS3 Scripting Guide. Properties...
  • Page 44: Putenumerated

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Puts an enumeration type and ID putEnumerated number (long) into a reference along with the (desiredClass, number (long) enumType, desired class for the reference.
  • Page 45: Activedocument

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object 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 object as part of the containment hierarchy that describes an object.
  • Page 46: Name

    Adobe Photoshop CS3 displays dialogs in playback mode. Read-write. The playback options, which indicate ActionDescriptor playbackParameters the speed at which Adobe Photoshop CS3 plays actions. Read-only. The application preference settings preferences Preferences (equivalent to selecting Edit > Preferences in the Adobe Photoshop CS3 application in Windows or Photoshop >...
  • Page 47: Batch

    Batch command. Note: For information about the File object, see the JavaScript Tools Guide Causes a “beep” sound. beep Makes Adobe Photoshop CS3 bringToFront the active (front-most) application. Converts from a four character number (long) charIDToTypeID string...
  • Page 48: Featureenabled

    JavaScript Tools Guide Creates a contact sheet from string makeContactSheet array of File the specified files. (inputFiles ContactSheetOptions [, options]) Creates an Adobe PDF makePDFPresentation string array of File presentation file from the (inputFiles, File outputFiles specified input files. PresentationOptions...
  • Page 49: Open

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Opens the specified open Document File document as the optionally (document object (open options) [, as] specified file type. Optional boolean [, asSmartObject]...
  • Page 50: Typeidtocharid

    += "I’m installed in " + app.path.fsName + "\r\r" // see how much memory Adobe Photoshop CS3 has to play with message += "You have this much memory available for Adobe Photoshop CS3: " + app.freeMemory + "\r\r" // use the length property of the documents object to // see how many documents are open var documentsOpen = app.documents.length...
  • Page 51 = new Folder(app.path + "/Samples/") // see if we have something interesting if (inputFolder != null) { // get all the files found in this folder that are Adobe Photoshop CS3 (.psd format) var inputFiles = inputFolder.getFiles("*.psd") // output to the desktop var outputFile = File("~/Desktop/JavaScriptPresentation.pdf")
  • Page 52 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Note: To run this code on non-English platforms, substitute the following path for the outputFile variable: var outputFile = File("~/JavaScriptPresentation.pdf")
  • Page 53: Alllocked

    JavaScript Object Reference ArtLayer An object within a document that contains the visual elements of the image (equivalent to a layer in the Adobe Photoshop CS3 application). Note: Most likely, you will use variables to refer to objects in your script. However, if you choose...
  • Page 54: Linkedlayers

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-only. The layers linked to this layer. linkedLayers array of ArtLayer LayerSet objects Note: See link. Read-write. The layer’s name. string name Read-write. The master opacity of the layer (0.0 -...
  • Page 55: Adjustcurves

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Adjusts the tonal range of the adjustCurves array of points selected channel using up to (curveShape) (Array (Array(x, y))) fourteen points. Adjusts the levels of the...
  • Page 56: Applydisplace

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Applies the Displace filter using applyDisplace number (long) the specified horizontal and (horizontalScale, number (long) verticalScale, vertical scale (-999 - 999), DisplacementMapType displacement,...
  • Page 57: Applylensblur

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Applies the Lens Blur filter. applyLensBlur DepthMapSource ([source] : the source for the source number (long) [, focalDistance] depth map (default: boolean [, invertDepthMap]...
  • Page 58: Applymaximum

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Applies the Maximum filter applyMaximum number (double) within the specified radius (in (radius) pixels) (1 - 100). Applies the Median Noise filter applyMedianNoise...
  • Page 59: Applysharpenedges

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Applies the Sharpen Edges filter. applySharpenEdges Applies the Sharpen More filter. applySharpenMore Applies the Shear filter ( applyShear curve array of points - 255 points).
  • Page 60: Applyzigzag

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Applies the Zigzag filter applyZigZag number (long) : -100 - 100; : 0 - (amount, amount ridges number (long) ridges, 20). ZigZagType style)
  • Page 61: Merge

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Merges the layer down, merge ArtLayer removing the layer from the document; returns a reference to the art layer that this layer is merged into.
  • Page 62: Photofilter

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Adjust the layer’s color balance photoFilter SolidColor and temperature as if a color ([fillColor] number (long) [, density] filter had been applied boolean...
  • Page 63: Threshold

    // Save the current preferences var startRulerUnits = app.preferences.rulerUnits var startTypeUnits = app.preferences.typeUnits var startDisplayDialogs = app.displayDialogs // Set Adobe Photoshop CS3 to use pixels and display no dialogs app.preferences.rulerUnits = Units.PIXELS app.preferences.typeUnits = TypeUnits.PIXELS app.displayDialogs = DialogModes.NO //Close all the open documents while (app.documents.length) {...
  • Page 64 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference open(fileList[i]) // use the document name for the layer name in the merged document var docName = app.activeDocument.name // flatten the document so we get everything and then copy app.activeDocument.flatten() app.activeDocument.selection.selectAll() app.activeDocument.selection.copy()
  • Page 65: Artlayers

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference ArtLayers The collection of objects in the document. artLayer Note: Because the class is a property of the Document object, you use the property name, ArtLayers , rather than the class name, , in your code.
  • Page 66: Batchoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference BatchOptions Options to specify when running a Batch command. Note: You specify the batch source folder as the parameter of the method, which is inputFiles batch() a method of the class. See ‘batch’...
  • Page 67: Overridesave

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value type What it is (Continued) Read-write. Indicates whether to override save as overrideSave boolean action steps with the specified destination (default: false Note: Valid only when destination = BatchDestinationType.FOLDER destination = BatchDestinationType.SAVEANDCLOSE...
  • Page 68: Bitmapconversionoptions

    Read-write. The name of the pattern to use. patternName string For information about pre-installed valid patterns, see Adobe Photoshop CS3 Help on the bitmap conversion command, or view the options availabe in the Custom Color drop down box after choosing the bitmap conversion command.
  • Page 69: Bmpsaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference BMPSaveOptions Options that can be specified when saving a document in BMP format. Properties Property Value Type What it is Read-write. Indicates whether to save the alphaChannels boolean alpha channels. Read-write. The number of bits per channel.
  • Page 70: Camerarawopenoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference CameraRAWOpenOptions Options that can be specified when opening a document in Camera RAW format. Properties Property Value type What it is Read-write. The number of bits per channel. bitsPerChannel BitsPerChannelType Read-write. The blue hue of the shot (-100 -...
  • Page 71: Shadowtint

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value type What it is (Continued) Read-write. The shadow tint of the shot (-100 - shadowTint number (long) 100). Read-write. The sharpness of the shot (0 - 100). number (long) sharpness Read-write.
  • Page 72: Channel

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Channel Object that stores information about a color element in the image, analogous to a plate in the printing process that applies a single color. The document’s color mode determines the number of default channels;...
  • Page 73: Visible

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-only. The class name of the referenced typename string channel object. Read-write. Indicates whether the channel is visible. boolean visible Methods Method Parameter Type...
  • Page 74: Channels

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Channels The collection of objects in the document. See channel Channel Note: Because the class is also a property of the Document object, you use the property name, Channels , rather than the class name, , in your code.
  • Page 75 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference // Set Adobe Photoshop CS3 to use pixels and display no dialogs app.preferences.rulerUnits = Units.PIXELS app.preferences.typeUnits = TypeUnits.PIXELS app.displayDialogs = DialogModes.NO // if there are no documents open then try to open a sample file if (app.documents.length == 0) {...
  • Page 76 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference // the channel has to be visible to get a histogram myChannels[channelIndex].visible= true // turn off all the other channels for (var secondaryIndex = 0; secondaryIndex < myChannels.length; secondaryIndex++) { if (channelIndex != secondaryIndex) { myChannels[secondaryIndex].visible= false...
  • Page 77 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference inOutFile.write("One X = " + pixelsPerX + " pixels.\n") // output the name of this histogram inOutFile.write(inHistogramName + "\n") // loop through all the items and output in the following format...
  • Page 78 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference visibleChannelCount = 3 break; case DocumentMode.CMYK: visibleChannelCount = 4 break; case DocumentMode.DUOTONE: visibleChannelCount = 4 break; case DocumentMode.MULTICHANNEL: default: visibleChannelCount = inDocument.channels.length + 1 break; // now get the channels to activate into a local array...
  • Page 79: Cmykcolor

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference CMYKColor The definition of a CMYK color. Properties Property Value Type What it is Read-write. The black color value (as percent) (0.0 - 100.0). black number (double) Read-write. The cyan color value (as percent) (0.0 - 100.0).
  • Page 80: Colorsampler

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference ColorSampler A color sampler for the document. Note: For additional information about color samplers, see Adobe Photoshop CS3 help on the Color SamplerTool. Properties Property Value type What it is Read-only. The color of the color sampler.
  • Page 81: Colorsamplers

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference ColorSamplers The collection of objects in the document. See ColorSampler ColorSampler Note: Because the class is also a property of the Document object, you use the property ColorSampler name, , rather than the class name, , in your code.
  • Page 82: Contactsheetoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference ContactSheetOptions Options that can be specified for a contact sheet. Properties Property Value Type What it is Read-write. Indicates whether to place the images acrossFirst boolean horizontally (left to right, then top to bottom) first...
  • Page 83: Vertical

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. The vertical spacing (in pixels) between vertical number (long) images (0 - 29000; default: Note: Valid only when useAutoSpacing = false Read-write. The width (in pixels) of the resulting...
  • Page 84: Countitem

    A counted item in the document. Also see the method autoCount, defined on Document. Note: is available in the Extended Version only. CountItems For additional information about count items, see Adobe Photoshop CS3 help on the Count Tool. Properties Property Value type What it is Read-only.
  • Page 85: Countitems

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference CountItems The collection of objects in the document. See CountItem CountItem Note: is available in the Extended Version only. CountItem Because the class is also a property of the Document object, you use the property...
  • Page 86: Embedcolorprofile

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference DCS1_SaveOptions Options that can be specified when saving a CMYK document in DCS1 format. Properties Property Value Type What it is Read-write. (default: DCSType DCSType.COLORCOMPOSITE Read-write. Indicates whether to embed the color profile...
  • Page 87: Encoding

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference DCS2_SaveOptions Options that can be specified when saving a CMYK document in DCS2 format. Properties Property Value Type What it is Read-write. The type of composite file to create DCSType (default: DCSType.NOCOMPOSITE...
  • Page 88: Anonymize

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference DICOMOpenOptions Options that can be specified when opening an DICOM format document. Note: is available in the Extended Version only. DICOMOpenOptions Properties Property Value Type What it is Read-write. Indicates whether to make the...
  • Page 89: Activechannels

    The active containment object for layers and all other objects in the script; the basic canvas for the file. Note: In Adobe Photoshop CS3, a document can also be referred to as an image or a canvas. The term image refers to the entire document and its contents. You can trim or crop an image.
  • Page 90: Componentchannels

    Read-only. The current count items. countItems CountItems Note: For additional information about count items, see Adobe Photoshop CS3 help on the Count Tool. Read-only. The full path name of the fullName File document. Note: For information about the...
  • Page 91: Parent

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-only. The object's container. parent Application Document Read-only. The path to the document. path File Note: For information about the object, File see the JavaScript Tools Guide Read-only.
  • Page 92: Autocount

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Methods Method Parameter Type Returns What it does Counts the number of autoCount Channel objects in a document. (channel, number (long) threshold) Creates a CountItem object for each object counted. Note:...
  • Page 93: Crop

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Crops the document. The crop array(UnitValue) first parameter is an array of (bounds number (double) [, angle] four coordinates that mark UnitValue [, width]...
  • Page 94: Paste

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Pastes the contents of the paste ArtLayer boolean clipboard into the ([intoSelection]) document. If the optional argument is set to true a selection is active, the contents are pasted into the selection.
  • Page 95: Revealall

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Expands the document to revealAll show clipped sections. Rotates the canvas rotateCanvas number (double) (including the image) in (angle) clockwise direction. Saves the document.
  • Page 96: Trim

    // Save the current preferences var startRulerUnits = app.preferences.rulerUnits var startTypeUnits = app.preferences.typeUnits var startDisplayDialogs = app.displayDialogs // Set Adobe Photoshop CS3 to use pixels and display no dialogs app.preferences.rulerUnits = Units.PIXELS app.preferences.typeUnits = TypeUnits.PIXELS app.displayDialogs = DialogModes.NO // first close all the open documents while (app.documents.length) {...
  • Page 97 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference var mergedDoc = app.documents.add(duckDoc.width, duckDoc.height * 2, duckDoc.resolution, "FlowerOverDuck") // Copy the flower to the top; make it the active document so we can manipulate it app.activeDocument = flowerDoc flowerDoc.activeLayer.copy() //Pastethe flower to the merged document, making the merged document active app.activeDocument = mergedDoc...
  • Page 98: Documentinfo

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference DocumentInfo Metadata about a object. These values can be set by selecting File > File Info in the Adobe document Photoshop CS3 application. Note: Since the class is also a property of the...
  • Page 99: Ownerurl

    DocumentInfo.jsx // Save the current preferences var startDisplayDialogs = app.displayDialogs // Set Adobe Photoshop CS3 to use pixels and display no dialogs app.displayDialogs = DialogModes.NO // ask the user for the input folder var inputFolder = Folder.selectDialog("Select a folder to tag") // ask the user for the output folder var outputFolder = Folder.selectDialog("Select a folder for the output files")
  • Page 100 Photography" docRef.info.copyrighted = CopyrightedType.COPYRIGHTEDWORK docRef.info.country = "USA" docRef.info.provinceState = "CA" // change the date to a Adobe Photoshop CS3 date format // "YYYYMMDD" var theDate = new Date() // the year is from 1900 ???? var theYear = (theDate.getYear() + 1900).toString() // convert the month from 0..12 to 00..12...
  • Page 101 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference docRef.bitsPerChannel = BitsPerChannelType.EIGHT // save and close docRef.saveAs(new File(outputFolder + "/Output" + i + ".jpg"), jpegOptions) // don’t modify the original docRef.close(SaveOptions.DONOTSAVECHANGES) // Reset the application preferences app.displayDialogs = startDisplayDialogs...
  • Page 102: Length

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Documents The collection of open objects. See for information on the object. document Document document Note: Because the class is a property of the Application object, you use the property name,...
  • Page 103: Antialias

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference EPSOpenOptions Options that can be specified when opening an EPS format document. Properties Property Value Type What it is Read-write. Indicates whether to use antialias. antiAlias boolean Read-write. Indicates whether to constrain the...
  • Page 104: Halftonescreen

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference EPSSaveOptions Options that can be specified when saving a document in EPS format. Properties Property Value Type What it is Read-write. Indicates whether to embed the color embedColorProfile boolean profile in this document.
  • Page 105: Exportoptionsillustrator

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference ExportOptionsIllustrator Options that can be specified when exporting a PathItem object to an Adobe Illustrator® file. Properties Property Value Type What it is Read-write. The type of path to export path...
  • Page 106: Exportoptionssaveforweb

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference ExportOptionsSaveForWeb Options that can be specified when optimizing a document for the web or devices. Properties Property Value type What it is Read-write. Applies blur to the image to reduce blur...
  • Page 107: Png8

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value type What it is (Continued) Read-write. Indicates the number of bits; = 8, PNG8 boolean true = 24 (default: false true Note: Valid only when format = SaveDocumentType.PNG See format.
  • Page 108: Gallerybanneroptions

    (long) text (1 - 7; default: Read-write. The web photo gallery photographer string photographer. Read-write. The web photo gallery site string siteName name (default: Adobe Web Photo Gallery Read-only. The class name of the string typename referenced galleryBannerOptions object.
  • Page 109: Gallerycustomcoloroptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference GalleryCustomColorOptions Options that define the property of the object. See customColorOptions galleryOptions ‘GalleryOptions’ on page 112. Tip: You can preserve default values for many properties by setting the galleryCustomColorOptions property or by choosing File > Automate > Web...
  • Page 110: Galleryimagesoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference GalleryImagesOptions Options that define the property of the object. See ‘GalleryOptions’ on imagesOptions galleryOptions page 112. Tip: You can preserve default values for many properties by setting the galleryImagesOptions property or by choosing File > Automate > Web...
  • Page 111: Includefilename

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. Indication of whether to include includeFilename boolean the file name in image captions (default: true Note: Valid only when . See caption = true caption.
  • Page 112: Addsizeattributes

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference GalleryOptions Options that can be specified for a Web photo gallery. Tip: You can preserve default values for many properties by choosing File > Automate galleryOptions > Web Photo Gallery, and then choosing Preserve all metadata on the Options area of the Web Photo Gallery dialog.
  • Page 113: Content

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference GallerySecurityOptions Options that define the property of the object. See ‘GalleryOptions’ securityOptions galleryOptions on page 112. Tip: You can preserve default values for many properties by setting the gallerySecurityOptions property or by choosing File > Automate > Web...
  • Page 114: Border

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference GalleryThumbnailOptions Options that define the property of the object. See ‘GalleryOptions’ thumbnailOptions galleryOptions on page 112. Tip: You can preserve default values for many properties by setting the galleryThumbnailOptions property or by choosing File > Automate > Web...
  • Page 115: Gifsaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference GIFSaveOptions Options that can be specified when saving a document in GIF format. Properties Property Value Type What it is Read-write. The number of palette colors. colors number (long) Note: Valid only when palette = Palette.LOCALADAPTIVE...
  • Page 116: Transparency

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. Indicates whether to preserve transparency boolean transparent areas of the image during conversion to GIF format. Read-only. The class name of the referenced...
  • Page 117: Graycolor

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference GrayColor Options for defining a gray color. Properties Property Value Type What it is Read-write. The gray value (0.0 - 100.0; default: 0.0). gray number (double) Read-only. The class name of the referenced...
  • Page 118: Historystate

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference HistoryState A version of the document stored automatically (and added to the collection), which HistoryStates preserves the document’s state, each time the document is changed. See HistoryStates for information about the collection.
  • Page 119: Historystates

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference HistoryStates The collection of objects in the document. See HistoryState for more information on HistoryState objects. HistoryState Note: Because the class is also a property of the Document object, you use the property...
  • Page 120: Hsbcolor

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference HSBColor Options that can be specified for a color object using the HSB color model. Properties Property Value Type What it is Read-write. The brightness value (between 0.0 and 100.0). brightness number (double) Read-write.
  • Page 121: Indexedconversionoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference IndexedConversionOptions Options that can be specified when converting an RGB image to an indexed color model. Properties Property Value Type What it is Read-write. The number of palette colors. colors number (long)
  • Page 122: Jpegsaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference JPEGSaveOptions Options that can be specified when saving a document in JPEG format. Properties Property Value Type What it is Read-write. Indicates whether to embed the color embedColorProfile boolean profile in the document.
  • Page 123: Labcolor

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference LabColor Options that can be specified when defining a color object using the LAB color model. Properties Property Value Type What it is Read-write. The a-value (-128.0 - 127.0). number (double) Read-write.
  • Page 124: Layercomp

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference LayerComp A snapshot of a state of the layers in a document (can be used to view different page layouts or compostions). Note: Because the class is also a property of the...
  • Page 125: Remove

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Deletes the object. remove layerComp Resets the layer comp state to the resetfromComp document state.
  • Page 126: Layercomps

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference LayerComps The collection of objects in the document. See LayerComp for information on layerComp layerComp objects. Note: Because the class is also a property of the Document object, you use the property...
  • Page 127: Layers

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Layers The collection of layer objects, including ArtLayer LayerSet objects, in the document. Note: Because the object is a property of the Document object (as well as several other objects), Layers...
  • Page 128: Layerset

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference LayerSet A group of layer objects, which can include objects and other (nested) objects. A artLayer layerSet single command or set of commands manipulates all layers in a object. layerSet Note: Most likely, you will use variables to refer to objects in your script.
  • Page 129: Methods

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Methods Method Parameter Type Returns What it does Creates a duplicate of the duplicate LayerSet object (ArtLayer object. ([relativeObject] layerSet or LayerSet) ElementPlacement [, insertionLocation]) Links the layer set with another...
  • Page 130: Layersets

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference LayerSets The collection of objects in the document. See LayerSet for information on objects. layerSet layerSet Note: Because the class is a property of the Document object, you use the property name,...
  • Page 131 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference // create a working document var docRef = app.documents.add() // create an array to hold the layer sets var myLayerSets = new Array() // Create an array to hold the text var textArray = Array("First", "Second", "Third")
  • Page 132: Measurementlog

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference MeasurementLog The measurement log for the application. See measurementLog (in the Properties table for the Application object.) Note: The MeasurementLog feature is available in the Extended Version only. Because the class is a property of the...
  • Page 133: Measurementscale

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference MeasurementScale The measurement scale for the document. See measurementScale (in the Properties table for the Document object.) Note: The MeasurementScale feature is available in the Extended Version only. Because the class is a property of the...
  • Page 134: Nocolor

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference NoColor An object that represents a missing color. Properties Property Value type What it is Read-only. The class name of the referenced typename string noColor object.
  • Page 135: Notifier

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Notifier An event-handler object that tells the script to execute specified code when a specified event occurs. Note: For notifiers to work, they must be enabled. See the notifiersEnabled property of the Application object.
  • Page 136: Methods

    Deletes the object. remove notifier Note: ou can remove a object notifier from the Script Events Manager drop-down list by deleting the file named Script Events from in the Manager.xml Photoshop preferences folder. See Adobe Photoshop CS3 help for more information.
  • Page 137: Notifiers

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Notifiers The collection of objects in the document; the property of the object. See notifier notifiers ‘Notifier’ on page 135 for information on objects. See notifiers (in the Properties table of the notifier object).
  • Page 138: Index

    Note: You can remove a object notifier from the Script Events Manager drop-down list by deleting the file named Script Events Manager.xml from in the Photoshop preferences folder. See Adobe Photoshop CS3 help for more information.
  • Page 139: Pathitem

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PathItem A path or drawing object, such as the outline of a shape or a straight or curved line, which contains sub paths that comprise its geometry. Note: Because the class is also a property of the...
  • Page 140: Makeclippingpath

    // Save the current preferences var startRulerUnits = app.preferences.rulerUnits var startTypeUnits = app.preferences.typeUnits var startDisplayDialogs = app.displayDialogs // Set Adobe Photoshop CS3 to use pixels and display no dialogs app.preferences.rulerUnits = Units.PIXELS app.preferences.typeUnits = TypeUnits.PIXELS app.displayDialogs = DialogModes.NO // first close all the open documents while (app.documents.length) {...
  • Page 141 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference lineArray[0].anchor = Array(100, 100) lineArray[0].leftDirection = lineArray[0].anchor lineArray[0].rightDirection = lineArray[0].anchor lineArray[1] = new PathPointInfo lineArray[1].kind = PointKind.CORNERPOINT lineArray[1].anchor = Array(150, 200) lineArray[1].leftDirection = lineArray[1].anchor lineArray[1].rightDirection = lineArray[1].anchor var lineSubPathArray = new Array() lineSubPathArray[0] = new SubPathInfo() lineSubPathArray[0].operation = ShapeOperation.SHAPEXOR...
  • Page 142 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference lineSubPathArray[2] = new SubPathInfo() lineSubPathArray[2].operation = ShapeOperation.SHAPEXOR lineSubPathArray[2].closed = false lineSubPathArray[2].entireSubPath = lineArray3 //create the path item var myPathItem = docRef.pathItems.add("A Line", lineSubPathArray) // stroke it so we can see something myPathItem.strokePath(ToolType.BRUSH)
  • Page 143: Pathitems

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PathItems The collection of objects in the document. See PathItem for information on objects. pathItem pathItem Note: Because the class is a property of the Document object, you use the property name,...
  • Page 144: Pathpoint

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PathPoint Information about an array of objects. PathPointInfo Note: You do not use the object to create points that make up a path. Rather, you use the PathPoint object to retrieve information about the points that describe path segments. To create...
  • Page 145: Pathpointinfo

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PathPointInfo A point on a path, expressed as an array of three coordinate arrays: the anchor point, left direction point, and right direction point. For paths that are straight segments (not curved), the coordinates of all three points are the same.
  • Page 146: Pathpoints

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PathPoints A collection of objects that comprises the property of the object. PathPoint PathPoints SubPathItem SubPathItem for more information. Properties Property Value Type What it is Read-only. The number of elements in the...
  • Page 147: Bitsperchannel

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PDFOpenOptions Options that can be specified when opening a document in generic Adobe PDF format. Properties Property Value Type What it is Read-write. Indicates whether to use antialias. antiAlias boolean Read-write. The number of bits per channel.
  • Page 148: Alphachannels

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PDFSaveOptions Options that can be specified when saving a document in Adobe PDF format. Properties Property Value Type What it is Read-write. Indicates whether to save the alphaChannels boolean alpha channels with the file.
  • Page 149: Jpegquality

    Read-write. The PDF standard to make the PDFStandard PDFStandard document compatible with. Read-write. Indicates whether to reopen the preserveEditing boolean PDF in Adobe Photoshop CS3 with native Photoshop data intact. Read-write. The preset file to use for presetFile string settings. Note: This option overrides other settings.
  • Page 150: Vectordata

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Deprecated for Adobe Photoshop CS3. vectorData boolean Read-write. Indicates whether to open the view boolean saved PDF in Adobe Acrobat.
  • Page 151: Photocdopenoptions

    JavaScript Object Reference PhotoCDOpenOptions Deprecated in Adobe Photoshop CS3. Kodak PhotoCD is now found in the Goodies folder on the Adobe Photoshop CS3 Install DVD. Options to be specified when opening a Kodak Photo CD (PCD) files, including high-resolution files from Pro Photo CD discs.
  • Page 152: Photoshopsaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PhotoshopSaveOptions Options that can be specified when saving a document in PSD format. Properties Property Value Type What it is Read-write. Indicates whether to save the alpha alphaChannels boolean channels. Read-write. Indicates whether to save the...
  • Page 153: Pictfilesaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PICTFileSaveOptions Options that can be specified when saving a document in PICT format. Properties Property Value Type What it is Read-write. Indicates whether to save the alpha alphaChannels boolean channels. Read-write. (default:...
  • Page 154: Pictresourcesaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PICTResourceSaveOptions Options that can be specified when saving a document as a PICT Resource file. Properties Property Value Type What it is Read-write. Indicates whether to save the alpha alphaChannels boolean channels.
  • Page 155: Picturepackageoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PicturePackageOptions Options that can be specified for a Picture Package. Properties Property Value type What it is Read-write. The content information (default: content PicturePackageTextType PicturePackageTextType.NONE Read-write. Indicates whether all layers in the...
  • Page 156: Pixarsaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PixarSaveOptions Options that can be specified when saving a document in Pixar format. Properties Property Value Type What it is Read-write. Indicates whether to save alphaChannels boolean the alpha channels. Read-only. The class name of the...
  • Page 157: Interlaced

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PNGSaveOptions Options that can be specified when saving a document in PNG format. Properties Property Value Type What it is Read-write. Indicates whether the should rows be interlaced boolean interlaced (default: false Read-only.
  • Page 158: Additionalpluginfolder

    Note: Defining the properties is basically equivalent to selecting Edit > Preferences 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 Read-write.
  • Page 159: Columnwidth

    . See useHistoryLog. = true Read-write. Indicates whether to retain exportClipboard boolean Adobe Photoshop CS3 contents on the clipboard after you exit the application. Read-write. Indicates whether to show fontPreviewSize FontPreviewType font previews in the type tool font menus.
  • Page 160: Keyboardzoomresizeswindows

    Read-write. The behavior to use to check maximizeCompatibility QueryStateType whether to maximize compatibility when opening Adobe Photoshop CS3 (PSD) files . Read-write. The maximum percentage of maxRAMuse number (long) available RAM used by Adobe Photoshop CS3 (5 - 100).
  • Page 161: Savepalettelocations

    Read-write. Indicates whether to enable useShiftKeyForToolSwitch boolean cycling through a set of hidden tools. Read-write. Indicates whether to enable useVideoAlpha boolean Adobe Photoshop CS3 to send transparency information to your computer’s video board. (Requires hardware support.) Read-write. (Requires hardware support.) windowsThumbnail boolean Indicates whether to create a thumbnail when saving the image on Windows.
  • Page 162: Presentationoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference PresentationOptions Options that can be specified for Adobe PDF presentations. Properties Property Value Type What it is Read-write. Indicates whether to auto advance autoAdvance boolean images when when viewing the presentation...
  • Page 163: Rawformatopenoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference RawFormatOpenOptions Options that can be specified when opening a document in RAW format. Properties Property Value Type What it is Read-write. The number of bits for each channel. bitsPerChannel number (long)
  • Page 164: Rawsaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference RawSaveOptions Options that can be specified when saving a document in RAW format. Properties Property Value Type What it is Read-write. Indicates whether alpha alphaChannels boolean channels should be saved. Read-write. Indicates whether the spot...
  • Page 165: Rgbcolor

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference RGBColor The definition of a color in RGB color mode. Properties Property Value Type What it is Read-write. The blue color value ( blue number (double) 0.0 - 255.0; default: 255.0).
  • Page 166: Selection

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Selection The selected area of a document or layer. Note: Many of the properties and methods of use the type. For information about Selection UnitValue this type, see the JavaScript Tools Guide.
  • Page 167: Fill

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Fills the selection ( : 1 - fill opacity Object (SolidColor 100 as percent). (filltype HistoryState) [, mode] ColorBlendMode [, opacity] number (long)
  • Page 168: Selectborder

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Method Parameter Type Returns What it does (Continued) Selects the selection border selectBorder UnitValue only (in the specified width); (width) subsequent actions do not affect the selected area within the borders.
  • Page 169 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference var startDisplayDialogs = app.displayDialogs // Set Adobe Photoshop CS3 to use pixels and display no dialogs app.preferences.rulerUnits = Units.PIXELS app.preferences.typeUnits = TypeUnits.PIXELS app.displayDialogs = DialogModes.NO //Close all the open documents while (app.documents.length) { app.activeDocument.close()
  • Page 170 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference // Fill the current selection with the foreground color checkersDoc.selection.fill(app.foregroundColor) //Invert the selection checkersDoc.selection.invert() // Fill the new selection with the background color checkersDoc.selection.fill(app.backgroundColor) // Clear the selection to get rid of the non-printing borders checkersDoc.selection.deselect()
  • Page 171: Sgirgbsaveoptions

    JavaScript Scripting Reference JavaScript Object Reference SGIRGBSaveOptions Options that can be specified when saving a document in SGIRGB format. Note: The SGIRGB format is not installed automatically with Adobe Photoshop CS3. Properties Property Value Type What it is Read-write. Indicates whether to save...
  • Page 172: Solidcolor

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference SolidColor A color definition used in the document. Properties Property Value Type What it is Read-write. The CMYK color mode. cmyk CMYKColor Read-write. The Grayscale color mode. gray GrayColor Read-write. The HSB color mode.
  • Page 173: Subpathinfo

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference SubPathInfo An array of objects that describes a straight or curved segment of a path. PathPointInfo You add sub path information to a path by passing a object into the method of the...
  • Page 174: Subpathitem

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference SubPathItem Information about a path. Note: You do not use the object to create a path. Rather, you create path segments using SubPathItem SubPathInfo object. Use the object to retrieve information about a path. (Note...
  • Page 175: Subpathitems

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference SubPathItems A collection of objects. See SubPathItem. SubPathItem Properties Property Value Type What it is Read-only. The number of elements in the length number (long) SubPathItems collection. Read-only. The object's container.
  • Page 176: Targasaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference TargaSaveOptions Options that can be set when saving a document in TGA (Targa) format. Properties Property Value Type What it is Read-write. Indicates whether to save the alpha alphaChannels boolean channels.
  • Page 177: Textfont

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference TextFont Details about a font in the collection. See TextFonts for more information on the TextFonts TextFonts collection. Properties Property Value Type What it is Read-only. The font family. string family Read-only.
  • Page 178: Textfonts

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference TextFonts The collection of fonts available on your computer. Note: class corresponds to the property of the object. In a script, you TextFonts fonts TextFonts use the property name , rather than the class name...
  • Page 179: Textitem

    Read-write. Indicates whether to use alternate alternateLigatures boolean ligatures. Note: Alternate ligatures are the same as Discretionary Ligatures. Please refer to Adobe Photoshop CS3 Help for more information. Read-write. The method of anti aliasing to use. antiAliasMethod AntiAlias Read-write. The auto kerning option to use.
  • Page 180: Desiredletterscaling

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. The amount of space between letters desiredLetterScaling number (double) (100 - 500; at 0, no space is added between letters). Note: ‘Letter Scaling’ is...
  • Page 181: Height

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. The height of the bounding box (unit height UnitValue value) for paragraph text. Note: Valid only when . See kind. kind = TextType.PARAGRAPHTEXT Read-write.
  • Page 182: Maximumglyphscaling

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. The maximum amount (percentage) to maximumGlyphScaling number (double) scale the horizontal size of the text letters (50 - 200; at 100, the width of characters is not scaled).
  • Page 183: Minimumglyphscaling

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. The minimum amount (percentage) to minimumGlyphScaling number (double) scale the horizontal size of the text letters (50 - 200; at 100, the width of characters is not scaled).
  • Page 184: Position

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. The object's container. parent object TextItem (ArtLayer) Read-write. The position of origin for the text. The position array (UnitValue) array must contain two values (unit value).
  • Page 185: Warphorizontaldistortion

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference Property Value Type What it is (Continued) Read-write. The horizontal distortion (as percentage) warpHorizontalDistortion number (double) of the warp (-100 - 100). Read-write. The style of warp to use. WarpStyle warpStyle Read-write.
  • Page 186: Tiffsaveoptions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference TiffSaveOptions Options that can be specified when saving a document in TIFF format. Properties Property Value Type What it is Read-write. Indicates whether to save the alphaChannels boolean alpha channels. Read-write. Indicates whether to save the...
  • Page 187: Rawdata

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Object Reference xmpMetadata Camera RAW image file settings stored in an XMP file in the same folder as the RAW file with the same base name and an XMP extension. Properties Property Value Type What it is Read-only.
  • Page 188: Adjustmentreference

    Scripting Constants This section lists and describes the enumerations defined for use with Adobe Photoshop CS3 JavaScript properties and methods. Constant type Values What it means Method to use for interpreting selective AdjustmentReference ABSOLUTE RELATIVE color adjustment specifications: = % of the whole;...
  • Page 189: Blendmode

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means Controls how pixels in the image are BlendMode COLORBLEND COLORBURN blended. COLORDODGE DARKEN DIFFERENCE DISSOLVE EXCLUSION HARDLIGHT HARDMIX LIGHTEN LINEARBURN LINEARDODGE LINEARLIGHT LUMINOSITY MULTIPLY NORMAL OVERLAY...
  • Page 190: Changemode

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The type of color mode to use. ChangeMode BITMAP CMYK GRAYSCALE Note: Color images must be changed INDEXEDCOLOR mode before you GRAYSCALE can change them to...
  • Page 191: Colorreductiontype

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The color reduction algorithm option to ColorReductionType ADAPTIVE BLACKWHITE use. CUSTOM GRAYSCALE MACINTOSH PERCEPTUAL RESTRICTIVE SELECTIVE WINDOWS The type of color space to use. ColorSpaceType ADOBERGB...
  • Page 192: Displacementmaptype

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means Describes how the displacement map DisplacementMapType STRETCHTOFIT TILE fits the image if the image is not the same size as the map. The type of dithering to use.
  • Page 193: Filenamingtype

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means File naming options for the batch FileNamingType DDMM DDMMYY command. DOCUMENTNAMELOWER DOCUMENTNAMEMIXED DOCUMENTNAMEUPPER EXTENSIONLOWER EXTENSIONUPPER MMDD MMDDYY SERIALLETTERLOWER SERIALLETTERUPPER SERIALNUMBER1 SERIALNUMBER2 SERIALNUMBER3 SERIALNUMBER4 YYDDMM YYMMDD YYYYMMDD...
  • Page 194: Gallerysecuritytextrotatetype

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The orientation of the text displayed GallerySecurityTextRotateType CLOCKWISE45 CLOCKWISE90 over gallery images as an antitheft COUNTERCLOCKWISE45 deterrent. COUNTERCLOCKWISE90 ZERO The content to use for text displayed...
  • Page 195: Language

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The language to use. Language BRAZILLIANPORTUGUES CANADIANFRENCH DANISH DUTCH ENGLISHUK ENGLISHUSA FINNISH FRENCH GERMAN ITALIAN NORWEGIAN NYNORSKNORWEGIAN OLDGERMAN PORTUGUESE SPANISH SWEDISH SWISSGERMAN Compression methods for data for LayerCompression pixels in layers.
  • Page 196: Measurementsource

    ALIASPIX document. CAMERARAW COMPUSERVEGIF Note: is deprecated. Kodak PHOTOCD DICOM PhotoCD is now found in the ELECTRICIMAGE Goodies folder on the Adobe EPSPICTPREVIEW Photoshop CS3 Install DVD. EPSTIFFPREVIEW FILMSTRIP Note: option is for the DICOM JPEG Extended version only. PHOTOCD...
  • Page 197: Otherpaintingcursors

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The pointer for the following tools: OtherPaintingCursors PRECISEOTHER STANDARDOTHER Eraser, Pencil, Paintbrush, Healing Brush, Rubber Stamp, Pattern Stamp, Smudge, Blur, Sharpen, Dodge, Burn, Sponge. The pointer for the following tools:...
  • Page 198: Pdfstandard

    LAB8 Photo CD. RGB16 RGB8 Note: Deprecated for Adobe Photoshop CS3. Kodak PhotoCD is now found in the Goodies folder on the Adobe Photoshop CS3 Install DVD. The pixel dimensions of the image. PhotoCDSize EXTRALARGE LARGE EXTRALARGE = 1024x1536 MAXIMUM...
  • Page 199: Polarconversiontype

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The method of polar distortion to use. PolarConversionType POLARTORECTANGULAR RECTANGULARTOPOLAR The type of image to use as a EIGHTBITTIFF Preview MACOSEIGHTBIT low-resolution preview in the MACOSJPEG destination application.
  • Page 200: Savedocumenttype

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The format in which to save a SaveDocumentType ALIASPIX document. COMPUSERVEGIF ELECTRICIMAGE Note: property of the format JPEG ExportOptionsSaveForWeb class uses only the following PHOTOSHOP PHOTOSHOPDCS_1...
  • Page 201: Smartblurquality

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The blur quality to use. SmartBlurQuality HIGH MEDIUM The color space for source when SourceSpaceType DOCUMENT PROOF printing. The curve (or stretch shape) to use for...
  • Page 202: Tooltype

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The tool selection. ToolType ARTHISTORYBRUSH BACKGROUNDERASER BLUR BRUSH BURN CLONESTAMP COLORREPLACEMENTTOO DODGE ERASER HEALINGBRUSH HISTORYBRUSH PATTERNSTAMP PENCIL SHARPEN SMUDGE SPONGE The method to use to transition from...
  • Page 203: Units

    Adobe Photoshop CS3 JavaScript Scripting Reference Scripting Constants Constant type Values What it means The measurement unit for type and Units INCHES ruler increments. PERCENT PICAS PIXELS POINTS The editorial urgency of the artwork. Urgency FOUR HIGH NONE NORMAL SEVEN THREE The warp style to use.
  • Page 204: Javascript Resource

    JavaScript Resource This section describes the JavaScript resource that enables your JavaScripts to behave like a plug-in. This includes: the ability to specify a menu the script appears in as a command, ● a terminology resource so the script can function with the Action Manager, which allows your script to ●...
  • Page 205: Basic Javascript Resource Example

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource Description The category the command appears within in the menu. Used to group <category> and order commands in the menu. Commands are placed in the menu alphabetically based on the string in .
  • Page 206 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource <ident> := (alpha | "_") {alpha | digit | "_" } <mulOperator> := "*" | "/" <addOperator> := "+" | "-" <equalityOperator> := "==" | "!=" <relationOperator> := "<" | "<=" | ">=" | ">"...
  • Page 207: Undefined Values In Enable Info Evaluation

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource Constant Name Description Grayscale mode, 16 bits per channel Gray16Mode RGB color mode, 16 bits per channel. RGB48Mode LAB mode, 16 bits per channel. Lab48Mode CMYK mode, 16 bits per channel. CMYK64Mode Deep multichannel mode.
  • Page 208: Using The "In" Function

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource Using the “in” Function The in function (see ) returns is the first parameter is equal to at least one of the <inFunction> true subsequent parameters. A typical use might be to see if the image mode of the active document is one of a set of image modes.
  • Page 209: Value Type Defintions

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource dictionary contains an entry for each event: /Events /eventName [ // Name used in string-based API (String event name) // required /direct parameter type // optional; if omitted, no parameter << // optional parameter dictionary...
  • Page 210: Uniqueness Rules For Terminology Entries

    Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource Name Code Description Windows file system path. typePaths 'Pth ' for Mac OS, for Windows. typePlatformFilePath 'alis' 'Pth typeAlias typePath Predefined Class Types Photoshop provides a number of predefined classes that are available for use in the terminology dictionary.
  • Page 211 Adobe Photoshop CS3 JavaScript Scripting Reference JavaScript Resource has two properties: , and , both of type . The enumeration annotSizeClass width height floatType has three values: , and annotType annotUnknown annotText annotSound <terminology><![CDATA[<<< /Version 1 /Events /newAnnot [(New Annotation) <<...
  • Page 212: Appendix A: Event Id Codes

    Appendix A: Event ID Codes The following table lists events and their four-character ID codes or string identifiers for use with the object. notifier Note: Do not include single quotes ( ' ) with four-character IDs in your code. The single quotes are used in this table to illustrate the placement of required spaces in codes that do not contain four letters.
  • Page 213 Adobe Photoshop CS3 JavaScript Scripting Reference Appendix A: Event ID Codes Event 4-char ID or String Charcoal 'Chrc' Chrome 'Chrm' Clear 'Cler' Close 'Cls ' Clouds 'Clds' ColorBalance 'ClrB' ColorHalftone 'ClrH' ColorRange 'ClrR' ColoredPencil 'ClrP' ContactSheet "0B71D221-F8CE-11d2-B21B-0008C75B322C" ConteCrayon 'CntC' Contract...
  • Page 214 Adobe Photoshop CS3 JavaScript Scripting Reference Appendix A: Event ID Codes Event 4-char ID or String Deselect 'Dslc' Despeckle 'Dspc' DifferenceClouds 'DrfC' Diffuse 'Dfs ' DiffuseGlow 'DfsG' DisableLayerFX 'dlfx' Displace 'Dspl' Distribute 'Dstr' Draw 'Draw' DryBrush 'DryB' Duplicate 'Dplc' DustAndScratches...
  • Page 215 Adobe Photoshop CS3 JavaScript Scripting Reference Appendix A: Event ID Codes Event 4-char ID or String GaussianBlur 'GsnB' 'getd' Glass 'Gls ' GlowingEdges 'GlwE' Gradient 'Grdn' GradientMap 'GrMp' Grain 'Grn ' GraphicPen 'GraP' Group 'GrpL' Grow 'Grow' HalftoneScreen 'HlfS' Hide...
  • Page 216 Adobe Photoshop CS3 JavaScript Scripting Reference Appendix A: Event ID Codes Event 4-char ID or String Mezzotint 'Mztn' Minimum 'Mnm ' ModeChange "8cba8cd6-cb66-11d1-bc43-0060b0a13dc4" Mosaic 'Msc ' Mosaic_PLUGIN 'MscT' MotionBlur 'MtnB' Move 'move' NTSCColors 'NTSC' NeonGlow 'NGlw' Next 'Nxt ' NotePaper...
  • Page 217 Adobe Photoshop CS3 JavaScript Scripting Reference Appendix A: Event ID Codes Event 4-char ID or String PosterEdges 'PstE' Posterize 'Pstr' Previous 'Prvs' Print 'Prnt' ProfileToProfile 'PrfT' Purge 'Prge' Quit 'quit' RadialBlur 'RdlB' Rasterize 'Rstr' RasterizeTypeSheet 'RstT' RemoveBlackMatte 'RmvB' RemoveLayerMask 'RmvL'...
  • Page 218 Adobe Photoshop CS3 JavaScript Scripting Reference Appendix A: Event ID Codes Event 4-char ID or String Smooth 'Smth' SmudgeStick 'SmdS' Solarize 'Slrz' Spatter 'Spt ' Spherize 'Sphr' SplitChannels 'SplC' Sponge 'Spng' SprayedStrokes 'SprS' StainedGlass 'StnG' Stamp 'Stmp' Stop 'Stop' Stroke...
  • Page 219 Adobe Photoshop CS3 JavaScript Scripting Reference Appendix A: Event ID Codes Event 4-char ID or String WaterPaper 'WtrP' Watercolor 'Wtrc' Wave 'Wave' Wind 'Wnd ' ZigZag 'ZgZg' BackLight 'BacL' FillFlash 'FilE' ColorCast 'ColE'...
  • Page 220: Index

    63 levels 55, 60 blending modes shadows 62 layer sets 128 temperature 62 layers 53 Adobe Illustrator, exporting paths to 105 options 189 alpha channels Blur filter 55 defined 72 blur filters from transparency (TIFF documents) 186...
  • Page 221 Adobe Photoshop CS3 JavaScript Scripting Reference Index activating 89 contact sheets adding 74 captions 82 adjusting 55 columns 82 alpha See alpha channels dimensions 83 creating 74 making 48 deleting 73 rows 82 displaying in color 158 contrast duplicating 73...
  • Page 222 Adobe Photoshop CS3 JavaScript Scripting Reference Index exporting 93 PostScript name of 177 info 98 formats, see individual document formats loading 48 managed 90 measurement scale 90 galleries 112 metadata 90, 98 background color 109 open with Photoshop dialog 49...
  • Page 223 Adobe Photoshop CS3 JavaScript Scripting Reference Index property 43 runtime 47 LabColor 123 runtime to string 50 languages 181 string to runtime 49 layer comps 124 string to type 49 adding 126 type to char 49 applying 124 Illustrator in documents 90...
  • Page 224 Adobe Photoshop CS3 JavaScript Scripting Reference Index levels layers 54 adjusting 55 picture packages 155 adjusting automatically 54 open options ligatures 179–181 Camera Raw format 70 linked layers 60 DICOM format 88 unlinking 63 EPS format 103 links PDF format 147...
  • Page 225 Adobe Photoshop CS3 JavaScript Scripting Reference Index opening 196 document layers 94 saving 152 RAW documents Photoshop files, maximizing compatibility 160 opening 163 PICT documents RawSaveOptions 164 opening 196 render filters saving 153 Clouds 55 PICT resources Difference Clouds 55...
  • Page 226 Adobe Photoshop CS3 JavaScript Scripting Reference Index Sharpen Edges 59 text items Sharpen More 59 See text Unsharp Mask 59 text layers Sharpen More filter 59 adding contents 179 Shear filter 59 creating 53 Smart Blur filter 59 Texture Fill filter 59...
  • Page 227 Adobe Photoshop CS3 JavaScript Scripting Reference Index XML 187 Zigzag filter 59, 60 xmp metadata 91, 187 zoom 160...
  • Page 228 Adobe Photoshop CS3 JavaScript Scripting Reference Index...
  • Page 229 Adobe Photoshop CS3 JavaScript Scripting Reference Index...

This manual is also suitable for:

Photoshop cs3

Table of Contents