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.
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...
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,...
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 ●...
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...
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...
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.
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...
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...
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.
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...
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...
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...
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.
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.
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 >...
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...
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...
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]...
+= "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")
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...
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 -...
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...
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,...
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]...
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...
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).
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.
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...
// 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()
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.
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’...
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...
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.
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.
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 -...
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.
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;...
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...
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...
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).
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.
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.
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...
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...
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.
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...
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...
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...
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...
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.
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...
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.
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:...
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]...
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.
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.
// 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...
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...
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...
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,...
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...
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.
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...
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...
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.
(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.
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...
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...
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.
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.
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...
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...
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...
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...
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...
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.
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...
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.
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)
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.
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.
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...
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.
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...
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...
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.
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...
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")
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...
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...
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.
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.
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.
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).
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.
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...
// 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) {...
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,...
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...
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.
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...
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.
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.
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.
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.
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.
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...
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:...
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.
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...
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...
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.
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.
. 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.
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).
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.
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...
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)
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...
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).
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.
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)
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()
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...
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.
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...
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...
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.
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.
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.
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...
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.
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...
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.
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).
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).
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).
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.
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...
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.
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;...
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...
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...
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...
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.
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...
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.
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...
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:...
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...
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.
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...
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...
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...
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.
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 ●...
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 .
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.
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...
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) <<...
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.
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...