Scripting Guide
Page 2
...AS IS, is subject to change without the prior written consent of Adobe Systems Incorporated. Adobe®, the Adobe logo, Acrobat®, GoLive®,InDesign®, Illustrator®, Photoshop® are trademarks of third party rights. NOTICE: All information contained ... Avenue, San Jose, California 95110, USA. Please note that may be construed as a commitment by Adobe Systems Incorporated. Adobe® Creative Suite® 3 Photoshop® JavaScript Scripting Reference for particular purposes, and noninfringement of Apple Computer, Inc., registered in hardcopy ...
...AS IS, is subject to change without the prior written consent of Adobe Systems Incorporated. Adobe®, the Adobe logo, Acrobat®, GoLive®,InDesign®, Illustrator®, Photoshop® are trademarks of third party rights. NOTICE: All information contained ... Avenue, San Jose, California 95110, USA. Please note that may be construed as a commitment by Adobe Systems Incorporated. Adobe® Creative Suite® 3 Photoshop® JavaScript Scripting Reference for particular purposes, and noninfringement of Apple Computer, Inc., registered in hardcopy ...
Scripting Guide
Page 3
Contents 1 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 2 JavaScript Object Reference ...35 Working with ...
Contents 1 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 2 JavaScript Object Reference ...35 Working with ...
Scripting Guide
Page 4
Adobe Photoshop CS3 JavaScript Scripting Reference 4 putInteger ...38 putList ...39 putObject...39 putPath ...39 putReference ...39 putString ...39 putUnitDouble...39 toStream ...39 ActionList...40 Properties ...40 count ...40 ...
Adobe Photoshop CS3 JavaScript Scripting Reference 4 putInteger ...38 putList ...39 putObject...39 putPath ...39 putReference ...39 putString ...39 putUnitDouble...39 toStream ...39 ActionList...40 Properties ...40 count ...40 ...
Scripting Guide
Page 5
Adobe Photoshop CS3 JavaScript Scripting Reference 5 getIdentifier ...43 getIndex ...43 getName ...43 getOffset ...43 getProperty ...43 putClass ...43 putEnumerated ...44 putIdentifier...44 putIndex...44 putName ...44 putOffset ...44 ...
Adobe Photoshop CS3 JavaScript Scripting Reference 5 getIdentifier ...43 getIndex ...43 getName ...43 getOffset ...43 getProperty ...43 putClass ...43 putEnumerated ...44 putIdentifier...44 putIndex...44 putName ...44 putOffset ...44 ...
Scripting Guide
Page 6
Adobe Photoshop CS3 JavaScript Scripting Reference 6 makeContactSheet...48 makePDFPresentation ...48 makePhotoGallery ...48 makePhotomerge...48 makePicturePackage ...48 open ...49 openDialog ...49 purge ...49 putCustomOptions ...49 refresh ...49 stringIDToTypeID...49 ...
Adobe Photoshop CS3 JavaScript Scripting Reference 6 makeContactSheet...48 makePDFPresentation ...48 makePhotoGallery ...48 makePhotomerge...48 makePicturePackage ...48 open ...49 openDialog ...49 purge ...49 putCustomOptions ...49 refresh ...49 stringIDToTypeID...49 ...
Scripting Guide
Page 7
Adobe Photoshop CS3 JavaScript Scripting Reference 7 applyHighPass ...56 applyLensBlur ...57 applyLensFlare...57 applyMaximum ...58 applyMedianNoise ...58 applyMinimum ...58 applyMotionBlur ...58 applyNTSC ...58 applyOceanRipple ...58 applyOffset...58 applyPinch ...58 ...
Adobe Photoshop CS3 JavaScript Scripting Reference 7 applyHighPass ...56 applyLensBlur ...57 applyLensFlare...57 applyMaximum ...58 applyMedianNoise ...58 applyMinimum ...58 applyMotionBlur ...58 applyNTSC ...58 applyOceanRipple ...58 applyOffset...58 applyPinch ...58 ...
Scripting Guide
Page 8
Adobe Photoshop CS3 JavaScript Scripting Reference 8 Properties ...65 length ...65 parent...65 typename ...65 Methods ...65 index ...65 add ...65 getByName ...65 removeAll ...65 BatchOptions ...66 Properties ...66 ...
Adobe Photoshop CS3 JavaScript Scripting Reference 8 Properties ...65 length ...65 parent...65 typename ...65 Methods ...65 index ...65 add ...65 getByName ...65 removeAll ...65 BatchOptions ...66 Properties ...66 ...
Scripting Guide
Page 9
Adobe Photoshop CS3 JavaScript Scripting Reference 9 contrast ...70 exposure ...70 greenHue ...70 greenSaturation ...70 luminanceSmoothing ...70 redHue ...70 redSaturation ...70 resolution...70 saturation ...70 settings ...70 shadows ...70 ...
Adobe Photoshop CS3 JavaScript Scripting Reference 9 contrast ...70 exposure ...70 greenHue ...70 greenSaturation ...70 luminanceSmoothing ...70 redHue ...70 redSaturation ...70 resolution...70 saturation ...70 settings ...70 shadows ...70 ...
Scripting Guide
Page 10
Adobe Photoshop CS3 JavaScript Scripting Reference 10 ColorSampler ...80 Properties ...80 color ...80 position ...80 parent...80 typename ...80 Methods ...80 move...80 remove...80 ColorSamplers ...81 Properties ......
Adobe Photoshop CS3 JavaScript Scripting Reference 10 ColorSampler ...80 Properties ...80 color ...80 position ...80 parent...80 typename ...80 Methods ...80 move...80 remove...80 ColorSamplers ...81 Properties ......
Scripting Guide
Page 11
Adobe Photoshop CS3 JavaScript Scripting Reference 11 add ...85 getByName ...85 removeAll ...85 DCS1_SaveOptions ...86 Properties ...86 dCS ...86 embedColorProfile ...86 encoding ...86 halftoneScreen ...86 interpolation...86 preview ......
Adobe Photoshop CS3 JavaScript Scripting Reference 11 add ...85 getByName ...85 removeAll ...85 DCS1_SaveOptions ...86 Properties ...86 dCS ...86 embedColorProfile ...86 encoding ...86 halftoneScreen ...86 interpolation...86 preview ......
Scripting Guide
Page 12
Adobe Photoshop CS3 JavaScript Scripting Reference 12 countItems ...90 fullName...90 height ...90 histogram ...90 historyStates ...90 info ...90 layerComps ...90 layers ...90 layerSets ...90 managed ...90 measurementScale ......
Adobe Photoshop CS3 JavaScript Scripting Reference 12 countItems ...90 fullName...90 height ...90 histogram ...90 historyStates ...90 info ...90 layerComps ...90 layers ...90 layerSets ...90 managed ...90 measurementScale ......
Scripting Guide
Page 13
Adobe Photoshop CS3 JavaScript Scripting Reference 13 Properties ...98 author ...98 authorPosition ...98 caption...98 captionWriter ...98 category ...98 city ...98 copyrighted ...98 copyrightNotice ...98 country ...98 creationDate ......
Adobe Photoshop CS3 JavaScript Scripting Reference 13 Properties ...98 author ...98 authorPosition ...98 caption...98 captionWriter ...98 category ...98 city ...98 copyrighted ...98 copyrightNotice ...98 country ...98 creationDate ......
Scripting Guide
Page 14
Adobe Photoshop CS3 JavaScript Scripting Reference 14 psColorManagement ...104 transferFunction...104 transparentWhites...104 typename ...104 vectorData...104 ExportOptionsIllustrator ...105 Properties...105 path...105 pathName...105 typename ...105 ExportOptionsSaveForWeb ......
Adobe Photoshop CS3 JavaScript Scripting Reference 14 psColorManagement ...104 transferFunction...104 transparentWhites...104 typename ...104 vectorData...104 ExportOptionsIllustrator ...105 Properties...105 path...105 pathName...105 typename ...105 ExportOptionsSaveForWeb ......
Scripting Guide
Page 15
Adobe Photoshop CS3 JavaScript Scripting Reference 15 caption...110 dimension...110 font...110 fontSize...110 imageQuality...110 includeCopyright...110 includeCredits...110 includeFilename...111 includeTitle ...111 numericLinks ...111 resizeConstraint ......
Adobe Photoshop CS3 JavaScript Scripting Reference 15 caption...110 dimension...110 font...110 fontSize...110 imageQuality...110 includeCopyright...110 includeCredits...110 includeFilename...111 includeTitle ...111 numericLinks ...111 resizeConstraint ......
Scripting Guide
Page 16
Adobe Photoshop CS3 JavaScript Scripting Reference 16 rowCount...114 size ...114 typename ...114 GIFSaveOptions...115 Properties...115 colors...115 dither...115 ditherAmount ...115 forced ...115 interlaced...115 matte......
Adobe Photoshop CS3 JavaScript Scripting Reference 16 rowCount...114 size ...114 typename ...114 GIFSaveOptions...115 Properties...115 colors...115 dither...115 ditherAmount ...115 forced ...115 interlaced...115 matte......
Scripting Guide
Page 17
Adobe Photoshop CS3 JavaScript Scripting Reference 17 Properties...122 embedColorProfile...122 formatOptions ...122 matte...122 quality ...122 scans...122 typename ...122 LabColor ...123 Properties...123 a...123 b ...123 l...123 ...
Adobe Photoshop CS3 JavaScript Scripting Reference 17 Properties...122 embedColorProfile...122 formatOptions ...122 matte...122 quality ...122 scans...122 typename ...122 LabColor ...123 Properties...123 a...123 b ...123 l...123 ...
Scripting Guide
Page 19
Adobe Photoshop CS3 JavaScript Scripting Reference 19 remove...136 Notifiers...137 Properties...137 length...137 parent...137 typename ...137 Methods ...138 index...138 add ...138 removeAll ...138 PathItem ......
Adobe Photoshop CS3 JavaScript Scripting Reference 19 remove...136 Notifiers...137 Properties...137 length...137 parent...137 typename ...137 Methods ...138 index...138 add ...138 removeAll ...138 PathItem ......
Scripting Guide
Page 20
Adobe Photoshop CS3 JavaScript Scripting Reference 20 PathPoints...146 Properties...146 length...146 parent...146 typename ...146 Methods ...146 index...146 PDFOpenOptions ...147 Properties...147 antiAlias...147 bitsPerChannel ......
Adobe Photoshop CS3 JavaScript Scripting Reference 20 PathPoints...146 Properties...146 length...146 parent...146 typename ...146 Methods ...146 index...146 PDFOpenOptions ...147 Properties...147 antiAlias...147 bitsPerChannel ......
Scripting Guide
Page 22
Adobe Photoshop CS3 JavaScript Scripting Reference 22 textRotate...155 typename ...155 PixarSaveOptions ...156 Properties...156 alphaChannels ...156 typename ...156 PNGSaveOptions ...157 Properties...157 interlaced...157 typename ...157 Preferences ......
Adobe Photoshop CS3 JavaScript Scripting Reference 22 textRotate...155 typename ...155 PixarSaveOptions ...156 Properties...156 alphaChannels ...156 typename ...156 PNGSaveOptions ...157 Properties...157 interlaced...157 typename ...157 Preferences ......
Scripting Guide
Page 23
Adobe Photoshop CS3 JavaScript Scripting Reference 23 savePaletteLocations ...161 showAsianTextOptions ...161 showEnglishFontNames ...161 showSliceNumber ...161 showToolTips ...161 smartQuotes...161 typename ...161 typeUnits ...161 useAdditionalPluginFolder ...161 useHistoryLog ...161 useLowerCaseExtension ......
Adobe Photoshop CS3 JavaScript Scripting Reference 23 savePaletteLocations ...161 showAsianTextOptions ...161 showEnglishFontNames ...161 showSliceNumber ...161 showToolTips ...161 smartQuotes...161 typename ...161 typeUnits ...161 useAdditionalPluginFolder ...161 useHistoryLog ...161 useLowerCaseExtension ......