photoshop cs5 object reference 3.0 - documentation.help · adobe photoshop cs5 object library....

732
Adobe Photoshop CS5 Object Library

Upload: others

Post on 10-Oct-2019

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 2: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

JavaScriptReferenceGuideScriptingisoneofthemostpowerfulfeaturesinPhotoshop.Itcansavelotsoftime:almostanythingyoucandowiththeuserinterface,youcandowithscripts,andthereareevenafewthingsyoucandoinscriptingthatyoucannotdofromwithintheuserinterface.Thecontentsontherightiscategorizedbyfunction;intheindexatthebottom,youcanfindallobjectsinalphabeticalorder.Eachobjectdescriptionlistsitselements,properties,andmethods.Thisentiresitewasentirelycreatedautomatically!Ohwow-readmore!

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworkingwithartpathitemsClassesforworkingwithnotifiers

Page 3: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 4: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5

Page 5: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Aboutthesepages TheExtendScriptToolkit

Editorcomeswithabuilt-inHelpfunction,whichdisplaysallobjectsaccessibleinJavaScriptforInDesign,Bridge,Illustrator,andPhotoshop.ItdoessobysendingarequesttothetargetprogramtooutputanXMLdatafile,containingtheprototypesanddefinitionsforallofitsscriptablecomponents.ThisXMLfileissavedinacache(presumablybecauseit'salengthyoperation)andsubsequentiallydisplayedwhenrequested.Ifitdetectsanewplugin,therequestissentagainandtheXMLfileisrebuiltfromscratch.Thatmeansthatonlinehelpforanynewscriptableplugincommandsareavailableimmediatelyforyournewscripts.Amazing!

XMLisaveryreadabledataformat...ifyou'reabitheadlikeme!Butwouldn'titbenicetobeabletoformatthishelptextjustasyoulike,andbereadable(and

Page 6: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

searchable!)inyourfavouriteprogram,suchasyourwebbrowser?Well,theXMLformathasauniqueadvantageoverjustaboutanyotherdatafile.It'shighlystructured,andthiscontentcanbemanipulatedusingXSLT—theExtensibleStylesheetLanguageTransformationslanguage,asdefinedbytheWorldWideWebConsortium(W3C).AnXSLTstylesheetcansortandmanipulateXMLinput,insertallkindsofextradata(suchas,oh,acopyrightmanifestatthetopofeveryoutput),andwritetheresulttooneormoreoutputfiles.Whathasthattodowiththese750pagesofHTML?Ididn'tcreateasingleoneofthem.(Thispageiscreated'AllByHand'TM—butit'snotpartofAdobe'sXMLfiles.)

SoIwroteanXSLTstylesheettoread,parse,split,andsortthehugeinputfile,andtooutputitasformattedandhyperlinkedHTMLpages.Thiswasnomeantaskatall—theinputfileisover

Page 7: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

113,000lineslong,andthelatestversionofthestylesheetcontainsjustunderathousandlines.Allinall,ittookmemorethan50hoursofhardworktocreatetheoutputyouseebeforeyou.Butwait!couldn'tIjusthavesearch-and-replacedtheXMLcommandsintoHTML?Sure—manuallysortingandsuch,butstilldoable.ButifIeverwanttochangesomething—say,Iwant4columnsofindexinsteadof3,orIdon'twanttousetablesanymore,butrealCSS3columns—allIhavetodoisre-writea(small)partoftheXSLTstylesheetandlettheSaxonXSLTinterpretergoovertheXMLagain.IfmyinstallationofInDesignisupgradedwithsomescriptableplugin,allIhavetodoisrunSaxonagain.SincetheXMLhelpforCS4hasthesameformatting,IcanrunSaxonagainonitshelpfile.Andthereyouhaveit!Anotherentirelynewsetofmorethan750files,allproperlyindexedandhyperlinked,withoutmedoinganymorethan

Page 8: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

changinghowitshouldlook!a

UnderstandingXMLiseasy,especiallyifyouarewell-versedinHTML.Ifthelatter,youshouldreallyknowaboutXHTML—thewell-formattedyoungerbrotherofthatplainoldtack-together-with-sticky-tapethatgrewsobloatedovertheyears.XMLisevenmoresostructured,andthestepovershouldn'tbedifficult.XSLTissomethingquiteelse.Firstoff,it'sdefinedintermsofXML(meaning:youcanrunanXSLTstylesheetoveranXSLTstylesheet,forexampletoformatitforprintingorviewing).It'saprogramminglanguage,butitdoesn'tworkinthedo-this-then-thatsequentialsteps;instead,it'saprocedurallanguage,anditdescribeswhattodooneachandeveryXMLelementitencountersintheinputXMLdocument.WritingyourfirstXSLTstylesheetcanbefrustrating(usually,becauseyourfirstattemptsdon'tappeartodoanythingatall)untilyou

Page 9: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

getintothepropermindset.SoonyouwillbescanningeveryfolderonyourcomputerforXMLfilestoexamine!(MacOSXusers:a.plistconfigurationfileisalsoXML;lotsofotherfilesinthatsystemareaswell.)

So,whydidIworksohardonwritingthesheetforthis?Well,itwasfuntocreatesomethingnew—agoodreasoninitself.Besides,Ineededthetraining.Asatypesetter,oneofmyupcomingjobsincludesadictionarythatisbeingassembledasExceldata.Iexperimentedwithasmalldataset,exportingitfromExcelasXML,andthenconvertingittoplaintext,sortingentriesandconcatenatingduplicatesallinonego.AfterthatIreckoned,"INX"—InDesign'scompatibilityfileformat—"isalsoanXMLfile",andwentontoincludeallnecessaryformatting,frompagesandparagraphs,rightuptothestyleandformattingofindividualwords.Saxonstilldidn'tbreakintoasweat—andnowallIhavetodoifthe

Page 10: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

completedatacomesin,isexportittoXML,runmysheetoverittocreateanINXoutputfile,andopenthatonewithInDesign.Thepublisherwillbeamazedifhereceivesacompletesetofproofswithinacoupleofhours(let'sbegenerous),nomatterifit'sahundredpagesofoutputorathousand.Howdoesthatsoundforpagethroughput!?

AcknowledgementsThefirstCHMconversionofthefilesforCS3wasdonebyfellowscriptingenthousiastABCGREEN.Additionally,hehelpedmesetupmysystemtocompileotherversionsaswell.Thanks,mate!

NoteaDuetoaharddiskcrashofmyWindowsmachineIlostallofmyinstalledprograms.Fortunately,mygoodfriendRenéKramer(1967-2010)wasabletorescuemost(ifnotall)ofmydata.Thanks,René-thatbottleofwhiskeywaswellearned.Enjoyit,whereeveryouare.SothisversionisnotcreatedwithSaxononaWindowscomputer.WorkingonmyMac,IdownloadedKernowforSaxon.Theolderversion1.4comescompletewithaJavainterfaceandSaxon8B,andtomysurprise(andrelief)ittookjust

Page 11: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

afewclickstore-generatetheentireHelpsetanew.IsaiditbeforeandI'llsayitagain:SupportOpenSourceSoftware!

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 12: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 13: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ContentsSuitethatappliestoallapplications

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworking

ApplicationDocument

Page 14: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

withartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 15: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 16: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

ScriptingcommandsandclassesforAdobePhotoshop

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentsto

AdjustmentReferenceAnchorPositionAntiAliasArtLayerAutoKernTypeBatchDestinationTypeBatchOptionsBitmapConversionOptionsBitmapConversionTypeBitmapHalfToneTypeBitsPerChannelTypeBlendModeByteOrderCameraRAWSettingsTypeCameraRAWSizeCaseChangeModeChannelChannelTypeColorBlendModeColorPickerColorProfileColorReductionTypeColorSamplerColorSpaceTypeContactSheetOptionsCopyrightedTypeCountItemCropToTypeDCSTypeDepthMapSourceDialogModesDirection

Page 17: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

documentsColorclassesforAdobePhotoshopClassesforworkingwithartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

DitherDocPositionStyleDocumentConversionOptionsDocumentFillDocumentInfoDocumentModeDocumentPrintSettingsEditLogItemsTypeExportTypeExtensionFileNamingTypeFontPreviewTypeForcedColorsFormatOptionsGalleryBannerOptionsGalleryConstrainTypeGalleryCustomColorOptionsGalleryFontTypeGalleryImagesOptionsGalleryOptionsGallerySecurityOptionsGallerySecurityTextColorTypeGallerySecurityTextPositionTypeGallerySecurityTextRotateTypeGallerySecurityTypeGalleryThumbSizeTypeGalleryThumbnailOptionsGeometryGridLineStyleGridSizeGuideLineStyleHistoryStateIllustratorPathTypeIndexedConversionOptionsIntentJavaScriptExecutionModeJustificationLanguageLayer

Page 18: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LayerCompLayerCompressionLayerKindLayerSetMagnificationTypeMatteTypeMeasurementLogMeasurementRangeMeasurementScaleMeasurementSourceNewDocumentModeOpenDocumentModeOpenDocumentTypeOperatingSystemOrientationOtherPaintingCursorsPDFCompatibilityPDFResamplePDFStandardPICTCompressionPaintingCursorsPalettePhotoCDColorSpacePicturePackageOptionsPicturePackageTextTypePointTypePreferencesPresentationOptionsPreviewPrintColorHandlingPrintEncodingPurgeTargetQueryStateTypeRasterizeTypeResampleMethodResetTargetSaveBehaviorSaveDocumentTypeSaveEncoding

Page 19: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveLogItemsTypeSaveOptionsSaveOptionsSelectionSelectionTypeSourceSpaceTypeStrikeThruTypeStrokeLocationTIFFEncodingTextComposerTextFontTextItemTextTypeTransitionTypeTrimTypeTypeUnitsUnderlineTypeUnitsUrgencyWarpStyleWhiteBalanceTypeXMPMetadata

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 20: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 21: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

Classesforspecifyingoptionswhenopeningdocuments

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesfor

CameraRAWOpenOptionsDICOMOpenOptionsOpenOptionsPhotoCDOpenOptionsPhotoCDSizeRawFormatOpenOptions

Page 22: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopClassesforworkingwithartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 23: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 24: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

Classesforspecifyingoptionswhensavingdocuments

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesfor

BMPDepthTypeBMPSaveOptionsDCS1_SaveOptionsDCS2_SaveOptionsEPSSaveOptionsGIFSaveOptionsJPEGSaveOptionsPDFSaveOptionsPICTBitsPerPixelsPICTFileSaveOptionsPICTResourceSaveOptionsPNGSaveOptionsPhotoshopSaveOptionsPixarSaveOptionsRawSaveOptionsSGIRGBSaveOptionsSaveOptionsSaveOptionsTargaBitsPerPixelsTargaSaveOptionsTiffSaveOptions

Page 25: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopClassesforworkingwithartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 26: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 27: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

Classesforspecifyingoptionswhenexportingdocuments

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesfor

ExportOptionsExportOptionsIllustratorExportOptionsSaveForWeb

Page 28: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopClassesforworkingwithartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 29: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 30: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

Scriptingcommandsforapplyingfilterstodocuments

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesfor

CreateFieldsDisplacementMapTypeEliminateFieldsLensTypeNoiseDistributionOffsetUndefinedAreasPolarConversionTypeRadialBlurMethodRadialBlurQualityRippleSizeSmartBlurModeSmartBlurQualitySpherizeModeTextureTypeUndefinedAreasWaveTypeZigZagType

Page 31: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopClassesforworkingwithartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 32: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 33: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

Scriptingcommandsforapplyingadjustmentstodocuments

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocuments

Page 34: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorclassesforAdobePhotoshopClassesforworkingwithartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 35: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 36: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ContentsColorclassesforAdobePhotoshop

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworking

CMYKColorColorGrayColorHSBColorLabColorNoColorRGBColor

Page 37: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

withartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 38: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 39: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ContentsClassesforworkingwithartpathitems

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworking

PathItemPathKindPathPointPathPointInfoPointKindShapeOperationSubPathInfoSubPathItemToolType

Page 40: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

withartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 41: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 42: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ContentsClassesforworkingwithnotifiers

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworking

Notifier

Page 43: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

withartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 44: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 45: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents Actions

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworkingwithartpathitems

ActionDescriptorActionListActionReference

Page 46: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 47: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 48: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents

Miscellaneousstandardcommandsandclasses

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshop

Page 49: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ClassesforworkingwithartpathitemsClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 50: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 51: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents Collections

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworkingwithartpathitems

ArtLayersChannelsColorSamplersCountItemsDocumentsHistoryStatesLayerCompsLayerSetsLayersNotifiersPathItemsPathPointsSubPathItemsTextFonts

Page 52: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 53: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdobePhotoshopCS5ObjectLibrary

Page 54: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Contents OtherClasses

SuitethatappliestoallapplicationsScriptingcommandsandclassesforAdobePhotoshopClassesforspecifyingoptionswhenopeningdocumentsClassesforspecifyingoptionswhensavingdocumentsClassesforspecifyingoptionswhenexportingdocumentsScriptingcommandsforapplyingfilterstodocumentsScriptingcommandsforapplyingadjustmentstodocumentsColorclassesforAdobePhotoshopClassesforworkingwithartpathitems

PointRectangle

Page 55: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ClassesforworkingwithnotifiersActionsMiscellaneousstandardcommandsandclassesCollectionsOtherClasses

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 56: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ClassIndex

$ABCDEFGHIJKLMNOPQActionDescriptor

ActionList

ActionReference

AdjustmentReference(enum)

AnchorPosition(enum)

AntiAlias(enum)

Application

ArtLayer

$ABCDEFGHIJKLMNOPQBMPDepthType(enum)

BMPSaveOptions

BatchDestinationType(enum)

BatchOptions

BitmapConversionOptions

BitmapConversionType(enum)

BitmapHalfToneType(enum)

BitsPerChannelType(enum)

$ABCDEFGHIJKLMNOPQCMYKColor

CameraRAWOpenOptions

CameraRAWSettingsType(enum)

CameraRAWSize(enum)

Case(enum)

ChangeMode(enum)

Channel

ChannelType(enum)

Channels

Color

ColorBlendMode(enum)

ColorModel(enum)

ColorPicker(enum)

ColorProfile(enum)

ColorReductionType(enum)

ColorSampler

$ABCDEFGHIJKLMNOPQDCS1_SaveOptions

DCS2_SaveOptions

DCSType(enum)

DICOMOpenOptions

DepthMapSource(enum)

DescValueType(enum)

DialogModes(enum)

Direction(enum)

DisplacementMapType(enum)

Dither(enum)

DocPositionStyle(enum)

Document

Page 57: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DescValueType(enum) Document

$ABCDEFGHIJKLMNOPQEPSOpenOptions

EPSSaveOptions

EditLogItemsType(enum)

ElementPlacement(enum)

EliminateFields(enum)

ExportOptions

ExportOptionsIllustrator

ExportOptionsSaveForWeb

$ABCDEFGHIJKLMNOPQFileNamingType(enum)

FontPreviewType(enum)

ForcedColors(enum)

FormatOptions(enum)

$ABCDEFGHIJKLMNOPQGIFSaveOptions

GalleryBannerOptions

GalleryConstrainType(enum)

GalleryCustomColorOptions

GalleryFontType(enum)

GalleryImagesOptions

GalleryOptions

GallerySecurityOptions

GallerySecurityTextColorType(enum)

GallerySecurityTextPositionType(enum)

GallerySecurityTextRotateType(enum)

GallerySecurityType(enum)

GalleryThumbSizeType(enum)

GalleryThumbnailOptions

$ABCDEFGHIJKLMNOPQHSBColor HistoryState

$ABCDEFGHIJKLMNOPQIllustratorPathType(enum) IndexedConversionOptions

$ABCDEFGHIJKLMNOPQJPEGSaveOptions JavaScriptExecutionMode

(enum)

Page 58: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

(enum)

$ABCDEFGHIJKLMNOPQLabColor

Language(enum)

Layer

LayerComp

LayerCompression(enum)

LayerComps

LayerKind(enum)

LayerSet

$ABCDEFGHIJKLMNOPQMagnificationType(enum)

MatteType(enum)

MeasurementLog

MeasurementRange(enum)

$ABCDEFGHIJKLMNOPQNewDocumentMode(enum)

NoColor

NoiseDistribution(enum)

Notifier

$ABCDEFGHIJKLMNOPQOffsetUndefinedAreas(enum)

OpenDocumentMode(enum)

OpenDocumentType(enum)

OpenOptions

OperatingSystem(enum)

Orientation(enum)

$ABCDEFGHIJKLMNOPQPDFCompatibility(enum)

PDFEncodingType(enum)

PDFOpenOptions

PDFResample(enum)

PDFSaveOptions

PDFStandard(enum)

PICTBitsPerPixels(enum)

PICTCompression(enum)

PICTFileSaveOptions

Palette(enum)

PathItem

PathItems

PathKind(enum)

PathPoint

PathPointInfo

PathPoints

PhotoCDColorSpace(enum)

PhotoCDOpenOptions

Page 59: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PICTResourceSaveOptions

PNGSaveOptions

PaintingCursors(enum)

PhotoCDSize(enum)

PhotoshopSaveOptions

PicturePackageOptions

$ABCDEFGHIJKLMNOPQueryStateType(enum)

$ABCDEFGHIJKLMNOPRGBColor

RadialBlurMethod(enum)

RadialBlurQuality(enum)

RasterizeType(enum)

RawFormatOpenOptions

RawSaveOptions

Rectangle

ReferenceFormType(enum)

$ABCDEFGHIJKLMNOPSGIRGBSaveOptions

SaveBehavior(enum)

SaveDocumentType(enum)

SaveEncoding(enum)

SaveLogItemsType(enum)

SaveOptions(enum)

Selection

SelectionType(enum)

ShapeOperation(enum)

SmartBlurMode(enum)

SmartBlurQuality(enum)

SolidColor

SourceSpaceType(enum)

SpherizeMode(enum)

$ABCDEFGHIJKLMNOPTIFFEncoding(enum)

TargaBitsPerPixels(enum)

TargaSaveOptions

TextComposer(enum)

TextFont

TextFonts

TextItem

TextType(enum)

TextureType(enum)

TiffSaveOptions

$ABCDEFGHIJKLMNOPUndefinedAreas(enum) Units(enum)

Page 60: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

UndefinedAreas(enum)

UnderlineType(enum)

Units(enum)

Urgency(enum)

$ABCDEFGHIJKLMNOPWarpStyle(enum) WaveType(enum)

$ABCDEFGHIJKLMNOPXMPMetadata

$ABCDEFGHIJKLMNOPZigZagType(enum)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 61: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 62: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Application TheAdobePhotoshopapplicationobject.

Thisistherootoftheobjectmodel,andprovidesaccesstoallotherobjects.Toaccessthepropertiesandmethods,youcanusethepre-definedglobalvariableapp.Forexample:varcurrentDoc=app.activeDocument;

QuickLinks batch,beep,bringToFront,charIDToTypeID,doActioneraseCustomOptions,executeAction,executeActionGetgetCustomOptions,load,makeContactSheet,makePDFPresentationmakePhotoGallery,makePhotomerge,makePicturePackageopenDialog,purge,putCustomOptions,refresh,runMenuItemstringIDToTypeID,togglePalettes,typeIDToCharID,typeIDToStringID

Hierarchy Object

Application

Properties Property Type Access

activeDocument Document r/w

backgroundColor SolidColor r/w

build string readonly

colorSettings any r/w

displayDialogs DialogModes:DialogModes.ALL

r/w

Page 63: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DialogModes.ERRORDialogModes.NO

documents Documents Document readonly

fonts TextFonts TextFont readonly

foregroundColor SolidColor r/w

freeMemory number readonly

locale string readonly

macintoshFileTypes Arrayofstring readonly

measurementLog MeasurementLog readonly

Page 64: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

name string readonly

notifiers Notifiers Notifier readonly

notifiersEnabled bool r/w

parent Object readonly

path Folder readonly

playbackDisplayDialogs DialogModes:DialogModes.ALLDialogModes.ERRORDialogModes.NO

r/w

Page 65: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

playbackParameters ActionDescriptor r/w

preferences Preferences readonly

preferencesFolder File readonly

recentFiles FileArray readonly

scriptingBuildDate string readonly

scriptingVersion string readonly

Page 66: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

systemInformation string readonly

typename string readonly

version string readonly

windowsFileTypes Arrayofstring readonly

Methods Instancesstringbatch(inputFiles:AliasArray,action:string,fromBatchOptions])Runsthebatchautomationroutine;analogoustousingtheBatchcommandinPhotoshop.Parameter Type Description

inputFiles AliasArray Thefilestooperateon.

action string Thenameoftheactiontoplay(notethattheActionnameiscase-sensitiveandmustmatchthenameintheActionspalette).

from string Thenameoftheactionsetcontainingtheactionbeingplayed(notethattheActionSetnameiscase-sensitiveandmustmatchthenameintheActionspalette).

Page 67: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

options BatchOptions Optionsforbatchautomation.(Optional)

voidbeep()Alertstheuser.

voidbringToFront()MakesPhotoshoptheactiveapplication.

intcharIDToTypeID(charID:string)ConvertsfromafourcharactercodetoaruntimeID.Parameter Type Description

charID string TheIDtoconvert.

voiddoAction(action:string,from:string)PlaysthespecifiedactionfromtheActionspalette.Parameter Type Description

action string Thenameoftheactiontoplay.(Notethattheactionnameiscase-sensitiveandmustmatchthenameasitappearsintheActionspalette.)

from string Thenameoftheactionsetcontainingtheactionbeingplayed.(NotethattheActionSetnameiscase-sensitiveandmustmatchthenameasitappearsintheActionspalette.)

voideraseCustomOptions(key:string)RemovesthespecifieduserobjectsfromthePhotoshopregistry.Parameter Type Description

key string TheuniquestringIDforuserobject(s)toremove.

ActionDescriptorexecuteAction(eventID:int[,descriptorActionDescriptor][,displayDialogs:DialogModes])PlaysanActionManagerevent.Parameter Type Description

eventID int Theeventtoplay.

descriptor ActionDescriptor Theactiondescriptortoplay.(Optional)

Page 68: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

displayDialogs DialogModes:DialogModes.ALLDialogModes.ERRORDialogModes.NO

Thedisplaypermissionsfordialogsandalertmessages.(Optional)

ActionDescriptorexecuteActionGet(reference:ActionReferenceObtainsanactiondescriptor.Parameter Type Description

reference ActionReference Thereferencespecificationoftheproperty.

boolfeatureEnabled(name:string)Iftrue,thespecifiedfeatureisenabled.Parameter Type Description

name string Thenameofthefeature.

ActionDescriptorgetCustomOptions(key:string)RetrievesuserobjectsfromthePhotoshopregistryfortheIDwithvaluekey.Parameter Type Description

key string TheuniquestringIDfortheuserobject.

voidload(document:File)Loadsasupportdocument.Parameter Type Description

document File Thedocumenttoload.

stringmakeContactSheet(inputFiles:AliasArray[,optionsContactSheetOptions])Createsacontactsheetfrommultiplefiles.Parameter Type Description

inputFiles AliasArray Thefilestoinclude.

options ContactSheetOptions Optionsforcreatingthecontactsheet.(Optional)

stringmakePDFPresentation(inputFiles:AliasArray

Page 69: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

options:PresentationOptions])CreatesaPDFpresentationfile.Parameter Type Description

inputFiles AliasArray Theinputfilestoincludeinthepresentation.

outputFile File Thelocationoftheoutputfile.

options PresentationOptions OptionsforthePDFpresentation.(Optional)

stringmakePhotoGallery(inputFolder:any,outputFolderGalleryOptions])DeprecatedforAdobePhotoshopCS3.Createsawebphotogallery.Parameter Type Description

inputFolder any Foldertoprocessoranarrayoffilestoprocess.

outputFolder File Locationforoutputfiles.

options GalleryOptions Optionsforthewebphotogallery.(Optional)

stringmakePhotomerge(inputFiles:AliasArray)DeprecatedforAdobePhotoshopCS3.Mergesmultiplefilesintoone,userinteractionrequired.Parameter Type Description

inputFiles AliasArray Listofinputfilestoinclude.

stringmakePicturePackage(inputFiles:AliasArray[,PicturePackageOptions])Createsapicturepackagefrommultiplefiles.Parameter Type Description

inputFiles AliasArray Thefilestoinclude.

options PicturePackageOptions OptionsforcreatingaPicturePackage.(Optional)

Page 70: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Documentopen(document:File[,as:any][,asSmartObjectOpensthespecifieddocumentfile(s).Parameter Type Description

document File Thedocument(s)toopend.

as any Thedocumenttype(ThedefaultistoletPhotoshopdeducetheformat).(Optional)

asSmartObject bool Createsasmartobjectaroundthedocument.(default:false)(Optional)

FileArrayopenDialog()UsesthePhotoshopopendialogtoselectfiles.

voidpurge(target:PurgeTarget)Purgesoneormorecaches.Parameter Type Description

target PurgeTarget:PurgeTarget.UNDOCACHESPurgeTarget.HISTORYCACHESPurgeTarget.CLIPBOARDCACHEPurgeTarget.ALLCACHES

Thecachestopurge.

voidputCustomOptions(key:string,customObject:persistent:bool=true])SavesuserobjectsinthePhotoshopregistry.Parameter Type Description

key string TheuniquestringIDfortheuserobject.

customObject ActionDescriptor Theuser-definedcustomobjecttosaveintheregistry.

persistent bool Iftrue,theobjectpersistsafterthescripthasfinished.(default:

voidrefresh()Pausesthescriptuntiltheapplicationrefreshes.

intrunMenuItem()RunamenuitemwiththegivenID.UsethisforInsertMenuItem.

Page 71: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

intstringIDToTypeID(stringID:string)ConvertsfromastringIDtoaruntimeID.Parameter Type Description

stringID string TheIDtoconvert.

voidtogglePalettes()Togglepalettevisibility.

stringtypeIDToCharID(typeID:int)ConvertsfromaruntimeIDtoacharacterID.Parameter Type Description

typeID int TheIDtoconvert.

stringtypeIDToStringID(typeID:int)ConvertsfromaruntimeIDtoastringID.Parameter Type Description

typeID int TheIDtoconvert.

Elementof global.app

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 72: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 73: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Document Theactivecontainmentobjectforthelayersandallotherobjectsinthescript;thebasiccanvasforthefile.

QuickLinks autoCount,changeMode,close,convertProfile,crop,duplicateflipCanvas,importAnnotations,mergeVisibleLayers,pasterecordMeasurements,resizeCanvas,resizeImage,revealAllsuspendHistory,trap,trim

Hierarchy Object

Document

Properties Property Type

ColorProfile ColorProfile:ColorProfile.NONEColorProfile.WORKINGColorProfile.CUSTOM

activeChannels ArrayofChannel

activeHistoryBrushSource HistoryState

activeHistoryState HistoryState

activeLayer Layer

artLayers ArtLayers ArtLayer

backgroundLayer ArtLayer

bitsPerChannel BitsPerChannelType:BitsPerChannelType.ONEBitsPerChannelType.EIGHTBitsPerChannelType.SIXTEENBitsPerChannelType.THIRTYTWO

Page 74: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

channels Channels Channel

colorProfileName string

colorSamplers ColorSamplers ColorSampler

componentChannels ArrayofChannel

countItems CountItems CountItem

fullName File

height UnitValue

histogram Arrayofint

historyStates HistoryStates HistoryState

info DocumentInfo

layerComps LayerComps LayerComp

layerSets LayerSets LayerSet

layers Layers Layer

Page 75: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

managed bool

measurementScale MeasurementScale

mode DocumentMode:DocumentMode.GRAYSCALEDocumentMode.RGBDocumentMode.CMYKDocumentMode.LABDocumentMode.BITMAPDocumentMode.INDEXEDCOLORDocumentMode.MULTICHANNELDocumentMode.DUOTONE

name string

parent Object

path File

pathItems PathItems PathItem

pixelAspectRatio number

printSettings DocumentPrintSettings

quickMaskMode bool

resolution number

saved bool

selection Selection

typename string

Page 76: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

width UnitValue

xmpMetadata XMPMetadata

Methods InstancesvoidautoCount(channel:Channel,threshold:int)Countstheobjectsinthedocument.Parameter Type Description

channel Channel Thechanneltouseforcounting.

threshold int(range:0-255) Thresholdtouseforcounting.Range:0to255.

voidchangeMode(destinationMode:ChangeMode[,optionsChangesthemodeofthedocument.Parameter Type

destinationMode ChangeMode:ChangeMode.GRAYSCALEChangeMode.RGBChangeMode.CMYKChangeMode.LABChangeMode.BITMAPChangeMode.INDEXEDCOLORChangeMode.MULTICHANNEL

options DocumentConversionOptions

voidclose([saving:SaveOptions=SaveOptions.PROMPTTOSAVECHANGESClosesthedocument.Parameter Type

saving SaveOptions:SaveOptions.SAVECHANGESSaveOptions.DONOTSAVECHANGESSaveOptions.PROMPTTOSAVECHANGES

voidconvertProfile(destinationProfile:string,intent:Intent

Page 77: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

bool=true])Convertsthedocumentfromusingonecolorprofiletousinganother.Parameter Type

destinationProfile string

intent Intent:Intent.PERCEPTUALIntent.SATURATIONIntent.RELATIVECOLORIMETRICIntent.ABSOLUTECOLORIMETRIC

blackPointCompensation bool

dither bool

voidcrop(bounds:UnitRect[,angle:number=0][,width:Cropsthedocument.Parameter Type Description

bounds UnitRect Theareatocrop.

angle number Theangleofcroppingbounds.(default:

width UnitValue Thewidthoftheresultingdocument.(Optional)

height UnitValue Theheightoftheresultingdocument.(Optional)

Documentduplicate(relativeObject:Object,insertionLocationDuplicatethisobject.Parameter Type

relativeObject Object

insertionLocation ElementPlacement:ElementPlacement.PLACEAFTERElementPlacement.PLACEBEFOREElementPlacement.PLACEATEND

Page 78: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Documentduplicate([name:string][,mergeLayersOnly:Createsaduplicateofthedocumentobject.Parameter Type Description

name string Thenameofthenewdocument.(Optional)

mergeLayersOnly bool Ifture,duplicatesmergedlayersonly.(Optional)

voidexportDocument(exportIn:File[,exportAs:ExportTypeoptions:ExportOptions])Exportsthedocument.Parameter Type Description

exportIn File Thefiletoexportto.

exportAs ExportType:ExportType.ILLUSTRATORPATHSExportType.SAVEFORWEB

Thetypeofexport.(default:ExportType.ILLUSTRATORPATHS

options ExportOptions Optionsforthespecifiedexporttype.(Optional)

voidflatten()Flattensalllayers.

voidflipCanvas(direction:Direction)Flipsthecanvashorizontallyorvertically.Parameter Type Description

direction Direction:Direction.HORIZONTALDirection.VERTICAL

Thedirectioninwhichtoflipthecanvas.

voidimportAnnotations(file:File)Importsannotationsintothedocument.Parameter Type Description

file File Thedocumenttoimportannotationsfrom.

voidmergeVisibleLayers()Flattensallvisiblelayersinthedocument.

ArtLayerpaste([intoSelection:bool=false])Pastescontentsoftheclipboardintothedocument.

Page 79: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type Description

intoSelection bool Iftrue,contentsarepastedintothecurrentselection.(default:

voidprint([postScriptEncoding:PrintEncoding=PrintEncoding.BINARYSourceSpaceType=SourceSpaceType.DOCUMENT][,printSpaceIntent=Intent.RELATIVECOLORIMETRIC][,blackPointCompensationPrintsthedocument.Parameter Type

postScriptEncoding PrintEncoding:PrintEncoding.BINARYPrintEncoding.JPEGPrintEncoding.ASCII

sourceSpace SourceSpaceType:SourceSpaceType.DOCUMENTSourceSpaceType.PROOF

printSpace string

intent Intent:Intent.PERCEPTUALIntent.SATURATIONIntent.RELATIVECOLORIMETRICIntent.ABSOLUTECOLORIMETRIC

blackPointCompensation bool

voidprintOneCopy()Printonecopyofthedocument.

voidrasterizeAllLayers()Rasterizesalllayers.

voidrecordMeasurements([source:MeasurementSourceRecordsthemeasurementsofdocument.

Page 80: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type

source MeasurementSource:MeasurementSource.MEASURESELECTIONMeasurementSource.MEASURECOUNTTOOLMeasurementSource.MEASURERULERTOOL

dataPoints Arrayofstring

voidresizeCanvas([width:UnitValue][,height:UnitValueAnchorPosition=AnchorPosition.MIDDLECENTER])Changesthesizeofthecanvas.Parameter Type Description

width UnitValue Thedesiredwidthofthecanvas.(Optional)

height UnitValue Thedesiredheightofthecanvas.(Optional)

anchor AnchorPosition:AnchorPosition.TOPLEFTAnchorPosition.TOPCENTERAnchorPosition.TOPRIGHTAnchorPosition.MIDDLELEFTAnchorPosition.MIDDLECENTERAnchorPosition.MIDDLERIGHTAnchorPosition.BOTTOMLEFTAnchorPosition.BOTTOMCENTERAnchorPosition.BOTTOMRIGHT

Theanchorpointtoresizearound.(default:AnchorPosition.MIDDLECENTER

voidresizeImage([width:UnitValue][,height:UnitValueResampleMethod=ResampleMethod.BICUBIC])Changesthesizeoftheimage.Parameter Type

width UnitValue

height UnitValue

resolution number

Page 81: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

resampleMethod ResampleMethod:ResampleMethod.NONEResampleMethod.NEARESTNEIGHBORResampleMethod.BILINEARResampleMethod.BICUBICResampleMethod.BICUBICSHARPERResampleMethod.BICUBICSMOOTHER

voidrevealAll()Expandsthedocumenttoshowclippedsections.

voidrotateCanvas(angle:number)Rotatesthecanvas.Parameter Type Description

angle number Thenumberofdegreestorotate.Apositiveanglerotatesthecanvasclockwise;anegativevaluerotatesthecanvascounter-clockwise.

voidsave()Savesthedocument.

voidsaveAs(saveIn:File[,options:any][,asCopy:bool][,Savesthedocumentwiththespecifiedsaveoptions.Parameter Type Description

saveIn File Thefiletosaveto,specifiedasastringcontainingthefullfilepathoranalias.Ifnotspecified,thedocumentissavedtoitsexistingfile.

options any Optionsforthespecifiedfiletype.(Optional)

asCopy bool Savesthedocumentasacopy,leavingtheoriginalopen.(Optional)

extensionType Extension:Extension.NONEExtension.LOWERCASEExtension.UPPERCASE

Appendsthespecifiedextensiontothefilename.(Optional)

ArrayofDocumentsplitChannels()Splitsthechannelsofthedocument.

voidsuspendHistory(historyString:string,javaScriptString

Page 82: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Providesasinglehistorystatefortheentirescript.Allowsasingleundoforallactionstakeninthescript.Parameter Type Description

historyString string Thestringtouseforthehistorystate.

javaScriptString string AstringofJavaScriptcodetoexecuteduringthesuspensionofhistory.

voidtrap(width:int)AppliestrappingtoaCMYKdocument.Validonlywhen'mode'=CMYK.Parameter Type Description

width int Thetrapwidthinpixels.

voidtrim([type:TrimType=TrimType.TOPLEFT][,topbool=true][,right:bool=true])Trimsthetransparentareaaroundtheimageonthespecifiedsidesofthecanvas.Parameter Type Description

type TrimType:TrimType.TRANSPARENTTrimType.TOPLEFTTrimType.BOTTOMRIGHT

Thecolorortypeofpixelstobasethetrimon.(default:TrimType.TOPLEFT

top bool Iftrue,trimsawaythetopofthedocument.(default:(Optional)

left bool Iftrue,trimsawaytheleftofthedocument.(default:(Optional)

bottom bool Iftrue,trimsawaythebottomofthedocument.(default:(Optional)

right bool Iftrue,trimsawaytherightofthedocument.(default:(Optional)

Elementof Application.activeDocument

Usedin: ChannelChannel.duplicate([targetDocument:Document

Return DocumentApplication.open(document:File[,as:any][,DocumentDocument.duplicate(relativeObject:Object,

Page 83: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DocumentDocument.duplicate([name:string][,mergeLayersOnlyArrayofDocumentDocument.splitChannels()DocumentDocuments.[](index:uint)DocumentDocuments.add([width:UnitValue][,height:

[,mode:NewDocumentMode=NewDocumentMode.RGBDocumentFill=DocumentFill.WHITE][,pixelAspectRatioBitsPerChannelType=BitsPerChannelType.EIGHT

DocumentDocuments.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 84: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 85: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AdjustmentReference Methodtouseforinterpretingselectivecoloradjustment

specifications.

Value Name

AdjustmentReference.ABSOLUTE

AdjustmentReference.RELATIVE

Usage InfunctionvoidArtLayer.selectiveColor(selectionMethod

AdjustmentReference[,redsyellows:Arrayofnumber][,number][,cyans:Arrayofnumbernumber][,magentas:ArrayArrayofnumber][,neutralsblacks:Arrayofnumber])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 86: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 87: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AnchorPosition Thepointaroundwhichtotransformtheobject.

Value Name Description

AnchorPosition.BOTTOMCENTER Themiddlepointofthebottomoftheobject.

AnchorPosition.BOTTOMLEFT Thebottomleftcorneroftheobject.

AnchorPosition.BOTTOMRIGHT Thebottomrightcorneroftheobject.

AnchorPosition.MIDDLECENTER Thecenteroftheobject.

AnchorPosition.MIDDLELEFT Themiddlepointontheleftsideoftheobject.

AnchorPosition.MIDDLERIGHT Themiddlepointontherightsideoftheobject.

AnchorPosition.TOPCENTER Themiddlepointonthetopoftheobject.

AnchorPosition.TOPLEFT Thetopleft

Page 88: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

corneroftheobject.

AnchorPosition.TOPRIGHT Thetoprightcorneroftheobject.

Usage InfunctionvoidDocument.resizeCanvas([width:UnitValue

UnitValue][,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER

voidLayer.resize([horizontal:number=100][,number=100][,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER

voidLayer.rotate(angle:number[,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER

voidSelection.resize([horizontal:number=100number=100][,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER

voidSelection.resizeBoundary([horizontal:numbervertical:number=100][,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER

voidSelection.rotate(angle:number[,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER

voidSelection.rotateBoundary(angle:numberAnchorPosition=AnchorPosition.MIDDLECENTER

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 89: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 90: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AntiAlias Themethodtousetosmoothedgesbysofteningthe

colortransitionbetweenedgepixelsandbackgroundpixels.

Value Name Description Value

AntiAlias.CRISP Makestypeappearsomewhatsharp.

int3

AntiAlias.NONE Doesnotuseanti-aliasing.

int1

AntiAlias.SHARP Makestypeappearitssharpest.

int2

AntiAlias.SMOOTH Makestypeappearsmoother.

int5

AntiAlias.STRONG Makestypeappearheavier.

int4

Usage AspropertyTextItem.antiAliasMethod

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 91: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 92: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ArtLayer Anobjectwithinadocumentthatcontainsthevisualelementsoftheimage(equivalenttoalayerinthe

AdobePhotoshopapplication).BaseClass:Layer

QuickLinks adjustBrightnessContrast,adjustColorBalance,adjustCurvesapplyAverage,applyBlur,applyBlurMore,applyClouds,applyCustomFilterapplyDespeckle,applyDifferenceClouds,applyDiffuseGlowapplyGaussianBlur,applyGlassEffect,applyHighPass,applyLensBlurapplyMaximum,applyMedianNoise,applyMinimum,applyMotionBlurapplyOceanRipple,applyOffset,applyPinch,applyPolarCoordinatesapplySharpen,applySharpenEdges,applySharpenMore,applyShearapplyStyle,applyTextureFill,applyTwirl,applyUnSharpMaskautoLevels,clear,copy,cut,desaturate,equalize,invert,mergerasterize,selectiveColor,shadowHighlight,threshold

Hierarchy Object

Layer

ArtLayer

Properties Property Type

fillOpacity number

filterMaskDensity number

filterMaskFeather number

grouped bool

isBackgroundLayer bool

Page 93: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

kind LayerKind:LayerKind.NORMALLayerKind.TEXTLayerKind.SOLIDFILLLayerKind.GRADIENTFILLLayerKind.PATTERNFILLLayerKind.LEVELSLayerKind.CURVESLayerKind.COLORBALANCELayerKind.BRIGHTNESSCONTRASTLayerKind.HUESATURATIONLayerKind.SELECTIVECOLORLayerKind.CHANNELMIXERLayerKind.GRADIENTMAPLayerKind.INVERSIONLayerKind.THRESHOLDLayerKind.POSTERIZELayerKind.SMARTOBJECTLayerKind.PHOTOFILTERLayerKind.EXPOSURELayerKind.LAYER3DLayerKind.VIDEOLayerKind.BLACKANDWHITELayerKind.VIBRANCE

layerMaskDensity number

layerMaskFeather number

parent Object

pixelsLocked bool

Page 94: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

positionLocked bool

textItem TextItem

transparentPixelsLocked bool

typename string

vectorMaskDensity number

vectorMaskFeather number

Methods InstancesvoidadjustBrightnessContrast(brightness:int,contrast:Adjuststhebrightnessandconstrast.Parameter Type Description

brightness int Thebrightnessamount.Range:-100to100.

contrast int Thecontrastamount.Range:-100to100.

voidadjustColorBalance([shadows:Arrayofint][,midtonespreserveLuminosity:bool])Adjuststhecolorbalanceofthelayer'scomponentchannels.Parameter Type Description

shadows Arrayofint

Theadjustmentsfortheshadows.Thearraymustincludethreevalues(intherange-100to100),whichrepresentcyanorred,magentaorgreen,andyelloworblue,whenthedocumentmodeisCMYKorRGB.

Page 95: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

(Optional)

midtones Arrayofint

Theadjustmentsforthemidtones.Thearraymustincludethreevalues(intherange-100to100),whichrepresentcyanorred,magentaorgreen,andyelloworblue,whenthedocumentmodeisCMYKorRGB.(Optional)

highlights Arrayofint

Theadjustmentsforthehighlights.Thearraymustincludethreevalues(intherange-100to100),whichrepresentcyanorred,magentaorgreen,andyelloworblue,whenthedocumentmodeisCMYKorRGB.(Optional)

preserveLuminosity bool Iftrue,luminosityispreserved.(Optional)

voidadjustCurves(curveShape:ArrayofPoint)Adjuststhetonalrangeoftheselectedchannelusinguptofourteenpoints.Parameter Type Description

curveShape ArrayofPoint Thecurvepoints.Thenumberofpointsmustbebetween2and14.

voidadjustLevels(inputRangeStart:int,inputRangeEnd:intoutputRangeStart:int,outputRangeEnd:int)Adjustslevelsoftheselectedchannels.Parameter Type Description

inputRangeStart int Theinputlevelsminimum.Range:0to253.

inputRangeEnd int Theinputlevelsmaximum.Range:(inputrangestart+2)to253.

inputRangeGamma number Theinputlevelsgamma.Range:0.10to9.99.

outputRangeStart int Theoutputlevelsminimum.Range:0to253.

outputRangeEnd int Theoutputlevelsmaximum.Range:(outputrangestart+2)to253.

voidapplyAddNoise(amount:number,distribution:NoiseDistributionAppliestheaddnoisefilter.Parameter Type Description

amount number Theamountofnoise(asapercentage).Range:0.1to400.0.

distribution NoiseDistribution: Thenoisedistributiontype.

Page 96: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

NoiseDistribution.UNIFORMNoiseDistribution.GAUSSIAN

monochromatic bool Iftrue,appliesthefilteronlytothetonalelementsintheimagewithoutchangingthecolors.

voidapplyAverage()Appliestheaveragefilter.

voidapplyBlur()Appliestheblurfilter.

voidapplyBlurMore()Appliestheblurmorefilter.

voidapplyClouds()Appliesthecloudsfilter.

voidapplyCustomFilter(characteristics:Arrayofint,scaleAppliesthecustomfilter.Parameter Type Description

characteristics Arrayofint

Thecustomfiltercharacteristics.Thisisanarrayof25valuesthatcorrespondstoaleft-to-right,top-to-bottomtraversalofthearraypresentedintheCustomdialogintheuserinterface(Filter>Other>Custom).

scale int Thevaluebywhichtodividethesumofthebrightnessvaluesofthepixelsincludedinthecalculation.

offset int Thevaluetobeaddedtotheresultofthescalecalculation.

voidapplyDeInterlace(eliminateFields:EliminateFields,Appliesthede-interlacefilter.Parameter Type Description

eliminateFields EliminateFields:EliminateFields.ODDFIELDSEliminateFields.EVENFIELDS

Thefieldstoeliminate.

createFields CreateFields:CreateFields.DUPLICATIONCreateFields.INTERPOLATION

Themethodtousetoreplaceeliminatedfields.

voidapplyDespeckle()

Page 97: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Appliesthedespecklefilter.

voidapplyDifferenceClouds()Appliesthedifferencecloudsfilter.

voidapplyDiffuseGlow(graininess:int,glowAmount:int,Appliesthediffuseglowfilter.Parameter Type Description

graininess int Theamountofgraininess.Range:0to10.

glowAmount int Theglowamount.Range:0to20.

clearAmount int Theclearamount.Range:0to20.

voidapplyDisplace(horizontalScale:int,verticalScale:intundefinedAreas:UndefinedAreas,displacementMapFile:FileAppliesthedisplacefilter.Parameter Type

horizontalScale int

verticalScale int

displacementType DisplacementMapType:DisplacementMapType.STRETCHTOFITDisplacementMapType.TILE

undefinedAreas UndefinedAreas:UndefinedAreas.WRAPAROUNDUndefinedAreas.REPEATEDGEPIXELS

displacementMapFile File

voidapplyDustAndScratches(radius:int,threshold:int)Appliesthedustandscratchesfilter.Parameter Type Description

radius int Thesize(inpixels)oftheareasearchedfordissimilarpixels.Range:1to16.

threshold int Determineshowdissimilarthepixelsshouldbebeforetheyareeliminated.Range:0to255.

Page 98: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidapplyGaussianBlur(radius:number)Appliesthegaussianblurfilter.Parameter Type Description

radius number Theblurwidthinpixels.Range:1.0to250.0.

voidapplyGlassEffect(distortion:int,smoothness:int,scalingTextureType][,textureFile:File])Appliestheglassfilter.Parameter Type Description

distortion int Theamountofdistortion.Range:0to20.

smoothness int Thesmoothness.Range:1to15.

scaling int Theamountofscaling.Range:50to200.

invert bool Iftrue,thetextureisinverted.(default:

texture TextureType:TextureType.BLOCKSTextureType.CANVASTextureType.FROSTEDTextureType.TINYLENSTextureType.FILE

Thetypeoftexture.(Optional)

textureFile File Thefilefromwhichtoloadthetexturetype.(Optional)

voidapplyHighPass(radius:number)Appliesthehighpassfilter.Parameter Type Description

radius number Thewidth(inpixels)oftheradiuswhereedgedetailsareretained.

voidapplyLensBlur([source:DepthMapSource=DepthMapSource.NONEinvertDepthMap:bool=false][,shape:Geometry=Geometry.HEXAGONbladeCurvature:int=0][,rotation:int=0][,brightness:int=0distribution:NoiseDistribution=NoiseDistribution.UNIFORMApplythelensblurfilter.Parameter Type

source DepthMapSource:

Page 99: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DepthMapSource.NONEDepthMapSource.TRANSPARENCYCHANNELDepthMapSource.LAYERMASKDepthMapSource.IMAGEHIGHLIGHT

focalDistance int

invertDepthMap bool

shape Geometry:Geometry.TRIANGLEGeometry.PENTAGONGeometry.HEXAGONGeometry.SQUAREGeometry.HEPTAGONGeometry.OCTAGON

radius int

bladeCurvature int

rotation int

brightness int

threshold int

amount int

Page 100: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

distribution NoiseDistribution:NoiseDistribution.UNIFORMNoiseDistribution.GAUSSIAN

monochromatic bool

voidapplyLensFlare(brightness:int,flareCenter:UnitPointAppliesthelensflarefilter.Parameter Type Description

brightness int Theflarebrightness.Range:10to300.

flareCenter UnitPoint Thepositionoftheflarecenter.

lensType LensType:LensType.ZOOMLENSLensType.PRIME35LensType.PRIME105LensType.MOVIEPRIME

Thelenstype.

voidapplyMaximum(radius:number)Appliesthemaximumfilter.Parameter Type Description

radius number Thechokearea(inpixels).Range:0to100.

voidapplyMedianNoise(radius:number)Appliesthemediannoisefilter.Parameter Type Description

radius number Thesizeoftheareasearchedforpixelsofsimilarbrightness.Range:0to100.

voidapplyMinimum(radius:number)Appliestheminimumfilter.Parameter Type Description

radius number Thespreadarea(inpixels).Range:0to100.

Page 101: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidapplyMotionBlur(angle:int,radius:number)Appliesthemotionblurfilter.Parameter Type Description

angle int Theangle(indegrees).Range:-360to360.

radius number Theradius(inpixels).Range:1to999.

voidapplyNTSC()AppliestheNTSCcolorsfilter.

voidapplyOceanRipple(size:int,magnitude:int)Appliestheoceanripplefilter.Parameter Type Description

size int Theripplesize.Range:1to15.

magnitude int Theripplemagnitude.Range:0to20.

voidapplyOffset(horizontal:UnitValue,vertical:UnitValueAppliestheoffsetfilter.Parameter Type

horizontal UnitValue

vertical UnitValue

undefinedAreas OffsetUndefinedAreas:OffsetUndefinedAreas.SETTOBACKGROUNDOffsetUndefinedAreas.WRAPAROUNDOffsetUndefinedAreas.REPEATEDGEPIXELS

voidapplyPinch(amount:int)Appliesthepinchfilter.Parameter Type Description

amount int Thepinchamount.Range:-100to100.

Page 102: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidapplyPolarCoordinates(conversion:PolarConversionTypeAppliesthepolarcoordinatesfilter.Parameter Type

conversion PolarConversionType:PolarConversionType.RECTANGULARTOPOLARPolarConversionType.POLARTORECTANGULAR

voidapplyRadialBlur(amount:int,blurMethod:RadialBlurMethodAppliestheradialblurfilter.Parameter Type Description

amount int Theamountofblur.Range:1to100.

blurMethod RadialBlurMethod:RadialBlurMethod.SPINRadialBlurMethod.ZOOM

Theblurmethodtouse.

blurQuality RadialBlurQuality:RadialBlurQuality.DRAFTRadialBlurQuality.GOODRadialBlurQuality.BEST

Thesmoothnessorgraininessoftheblurredimage.

voidapplyRipple(amount:int,size:RippleSize)Appliestheripplefilter.Parameter Type Description

amount int Therippleamount.Range:-999to999.

size RippleSize:RippleSize.SMALLRippleSize.MEDIUMRippleSize.LARGE

Theripplesize.

voidapplySharpen()Appliesthesharpenfilter.

voidapplySharpenEdges()Appliesthesharpenedgesfilter.

voidapplySharpenMore()Appliesthesharpenmorefilter.

Page 103: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidapplyShear(curve:Arrayofany,undefinedAreas:UndefinedAreasAppliestheshearfilter.Parameter Type

curve Arrayofany

undefinedAreas UndefinedAreas:UndefinedAreas.WRAPAROUNDUndefinedAreas.REPEATEDGEPIXELS

voidapplySmartBlur(radius:number,threshold:numberSmartBlurMode)Appliesthesmartblurfilter.Parameter Type Description

radius number Theblurradius.Range:0-1000.

threshold number Theblurthreshold.Range:0-1000.

blurQuality SmartBlurQuality:SmartBlurQuality.LOWSmartBlurQuality.MEDIUMSmartBlurQuality.HIGH

Thesmoothnessorgraininessoftheblurredimage.

mode SmartBlurMode:SmartBlurMode.NORMALSmartBlurMode.EDGEONLYSmartBlurMode.OVERLAYEDGE

Thesmartblurmode.

voidapplySpherize(amount:int,mode:SpherizeMode)Appliesthespherizefilter.Parameter Type Description

amount int Theamountofdistortion.Range:-100to100.

mode SpherizeMode:SpherizeMode.NORMALSpherizeMode.HORIZONTALSpherizeMode.VERTICAL

Thedistortionmode.

Page 104: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidapplyStyle(styleName:string)Appliesthespecifiedstyletothelayer.Parameter Type Description

styleName string Thelayerstyletoapply.

voidapplyTextureFill(textureFile:File)Appliesthetexturefillfilter.Parameter Type Description

textureFile File Thetexturefile.MustbeagrayscalePhotoshopfile.

voidapplyTwirl(angle:int)Appliesthetwirlfilter.Parameter Type Description

angle int Thetwirlangle.Range:-999to999.

voidapplyUnSharpMask(amount:number,radius:numberAppliestheunsharpmaskfilter.Parameter Type Description

amount number Theamountofsharpening(asapercentage).Range:1to500.

radius number Theradiusinpixels.Range:0.1to250.0.

threshold int Thecontrastthreshold.Range:0to255.

voidapplyWave(generatorNumber:int,minimumWavelengthminimumAmplitude:int,maximumAmplitude:int,horizontalScaleWaveType,undefinedAreas:UndefinedAreas,randomSeedAppliesthewavefilter.Parameter Type

generatorNumber int

minimumWavelength int

maximumWavelength int

Page 105: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

minimumAmplitude int

maximumAmplitude int

horizontalScale int

verticalScale int

waveType WaveType:WaveType.SINEWaveType.TRIANGULARWaveType.SQUARE

undefinedAreas UndefinedAreas:UndefinedAreas.WRAPAROUNDUndefinedAreas.REPEATEDGEPIXELS

randomSeed int

voidapplyZigZag(amount:int,ridges:int,style:ZigZagTypeAppliesthezigzagfilter.Parameter Type Description

amount int Theamountofzigzag.Range:-100to100.

ridges int Theridgelength.

style ZigZagType:ZigZagType.AROUNDCENTERZigZagType.OUTFROMCENTERZigZagType.PONDRIPPLES

Thezigzagstyle.

voidautoContrast()Adjuststhecontrastoftheselectedchannelsautomatically.

voidautoLevels()Adjustthelevelsoftheselectedchannelsusingtheautolevelsoption.

Page 106: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidclear()Cutsthelayerwithoutmovingittotheclipboard.

voidcopy([merge:bool=false])Copiesthelayertotheclipboard.Parameter Type Description

merge bool Iftrue,thecopyincludesallvisiblelayers.Iffalse,thecopyonlycopiesfromthecurrentlayer.(default:false)(Optional)

voidcut()Cutsthelayertotheclipboard.

voiddesaturate()Convertsacolorimagetoagrayscaleimageinthecurrentcolormodebyassigningequalvaluesofeachcomponentcolortoeachpixel.

voidequalize()Redistributesthebrightnessvaluesofpixelsinanimagetomoreevenlyrepresenttheentirerangeofbrightnesslevelswithintheimage.

voidinvert()Invertsthecolorsinthelayerbyconvertingthebrightnessvalueofeachpixelinthechannelstotheinversevalueonthe256-stepcolor-valuesscale.

ArtLayermerge()Mergesthelayerdown,removingthelayerfromthedocument.Returnsareferencetotheartlayerthatthislayerismergedinto.

voidmixChannels(outputChannels:Arrayofany[,monochromeModifiesatargeted(output)colorchannelusingamixoftheexistingcolorchannelsintheimage.(outputchannels=Anarrayofchannelspecifications.Foreachcomponentchannel,specifyalistofadjustmentvalues(-200to200)followedbya'constant'value(-200to200).)Whenmonochrome=true,themaximumnumberofchannelvaluespecificationsis1.Validonlywhen'documentmode'=RGBorCMYK.RGBarraysmustincludefourdoubles.CMYKarraysmustincludefivedoubles.Parameter Type Description

outputChannels Arrayofany

Alistofchannelspecifications.Foreachcomponentchannelthatthedocumenthas,youmustspecifyalistofadjustmentvaluesfollowedbya'constant'value.

monochrome bool Iftrue,usesmonochromemixing.Note:Ifthisistrue,youcanonlyspecifyonechannelvalue.(default:false

Page 107: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidphotoFilter([fillColor:SolidColor][,density:int=25][,Adjuststhelayer'scolorbalanceandtemperatureasifacolorfilterhadbeenapplied.Parameter Type Description

fillColor SolidColor Thecolortouseforthefill.(Optional)

density int Thedensity(asapercentage)ofthefiltereffect.Range:1to100.(default:25)(Optional)

preserveLuminosity bool Iftrue,luminosityispreserved.(default:

voidposterize(levels:int)Specifiesthenumberoftonallevelsforeachchannelandthenmapspixelstotheclosestmatchinglevel.Parameter Type Description

levels int Thetonallevels.Range:2to255.

voidrasterize(target:RasterizeType)Convertsthetargetedcontentinthelayerintoaflat,rasterimage.Parameter Type

target RasterizeType:RasterizeType.TEXTCONTENTSRasterizeType.SHAPERasterizeType.FILLCONTENTRasterizeType.LAYERCLIPPINGPATHRasterizeType.ENTIRELAYERRasterizeType.LINKEDLAYERS

voidselectiveColor(selectionMethod:AdjustmentReferenceofnumber][,greens:Arrayofnumber][,cyans:Arrayofnumbermagentas:Arrayofnumber][,whites:Arrayofnumber][,neutralsnumber])Parameter Type Description

selectionMethod AdjustmentReference:AdjustmentReference.RELATIVEAdjustmentReference.ABSOLUTE

Modifiestheamountofaprocesscolorinaspecifiedprimarycolorwithoutaffectingtheotherprimarycolors.

reds Arrayofnumber Arrayof4values:cyan,magenta,yellow,

Page 108: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

black.(Optional)

yellows Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

greens Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

cyans Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

blues Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

magentas Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

whites Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

neutrals Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

blacks Arrayofnumber Arrayof4values:cyan,magenta,yellow,black.(Optional)

voidshadowHighlight([shadowAmount:int=50][,shadowWidthhighlightAmount:int=0][,highlightWidth:int=50][,highlightRaduisint=20][,midtoneContrast:int=0][,blackClip:number=0.01Adjuststherangeoftonesintheshadowsandhighlights.Parameter Type Description

shadowAmount int Theshadowamount,asapercentage.Range:0to100.(default:(Optional)

shadowWidth int Theshadowwidth,asapercentage.Range:0to100fortonalwidth(0=narrow),(100=broad).(default:

shadowRaduis int Theshadowradius(inpixels).Range:0to2500.(default:

highlightAmount int Thehighlightamount,asapercentage.Range:0to100.(default:(Optional)

highlightWidth int Thehighlightwidth.Range:0to100fortonalwidth(0=narrow),(100=

Page 109: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

broad).(default:50)(Optional)

highlightRaduis int Thehighlightradius(inpixels).Range:0to2500.(default:(Optional)

colorCorrection int Theamounttoadjustthecolorsinthechangedportionoftheimage.Range:-100to100.(default:20

midtoneContrast int Theamountofmidtonecontrast.Range:-100to100.(default:(Optional)

blackClip number Fractionsofwhitestobeclipped.Range:0.000to50.000.(default:(Optional)

whiteClip number Fractionsofblackstobeclipped.Range:0.000to50.000.(default:(Optional)

voidthreshold(level:int)Convertsgrayscaleorcolorimagestohigh-contrast,B/Wimagesbyconvertingpixelslighterthanthespecifiedthresholdtowhiteandpixelsdarkerthanthethresholdtoblack.Parameter Type Description

level int Thethresholdlevel.

Elementof Document.backgroundLayer

Return ArtLayerArtLayer.merge()ArtLayerArtLayers.[](index:uint)ArtLayerArtLayers.add()ArtLayerArtLayers.getByName(name:string)ArtLayerDocument.paste([intoSelection:bool=false])ArtLayerLayerSet.merge()

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 110: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 111: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AutoKernType Thetypeofkerningtouseforcharacters.

Value Name Description Value

AutoKernType.MANUAL Allowsmanualkerning.

int1

AutoKernType.METRICS Useskernpairs,whichcontaininformationaboutthespacingofspecificpairsofletters.

int2

AutoKernType.OPTICAL Adjuststhespacingbetweenadjacentcharactersbasedontheirshapes.

int3

Usage AspropertyTextItem.autoKerning

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 112: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 113: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BatchDestinationType Thedestination,ifany,forbatch-processedfiles.

Value Name

BatchDestinationType.FOLDER

BatchDestinationType.NODESTINATION

BatchDestinationType.SAVEANDCLOSE

Usage AspropertyBatchOptions.destination

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 114: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 115: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BatchOptions OptionstospecifywhenrunningaBatchcommand.

Class Property Type

destination BatchDestinationType:BatchDestinationType.NODESTINATIONBatchDestinationType.SAVEANDCLOSEBatchDestinationType.FOLDER

destinationFolder File

errorFile File

fileNaming ArrayofFileNamingTypeFileNamingType.DOCUMENTNAMEMIXEDFileNamingType.DOCUMENTNAMELOWERFileNamingType.DOCUMENTNAMEUPPERFileNamingType.SERIALNUMBER1FileNamingType.SERIALNUMBER2FileNamingType.SERIALNUMBER3FileNamingType.SERIALNUMBER4FileNamingType.SERIALLETTERLOWERFileNamingType.SERIALLETTERUPPERFileNamingType.MMDDYYFileNamingType.MMDDFileNamingType.YYYYMMDDFileNamingType.YYMMDDFileNamingType.YYDDMMFileNamingType.DDMMYYFileNamingType.DDMMFileNamingType.EXTENSIONLOWERFileNamingType.EXTENSIONUPPER

macintoshCompatible bool

Page 116: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

overrideOpen bool

overrideSave bool

startingSerial int

suppressOpen bool

suppressProfile bool

unixCompatible bool

windowsCompatible bool

Usedin: stringApplication.batch(inputFiles:AliasArray,action

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 117: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 118: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BitmapConversionOptions OptionsforchangingthedocumentmodetoBitmap.BaseClass:

Class Property Type

angle number

frequency number

method BitmapConversionTypeBitmapConversionType.HALFTHRESHOLDBitmapConversionType.PATTERNDITHERBitmapConversionType.DIFFUSIONDITHERBitmapConversionType.HALFTONESCREENBitmapConversionType.CUSTOMPATTERN

patternName string

resolution number

shape BitmapHalfToneTypeBitmapHalfToneType.ROUNDBitmapHalfToneType.DIAMONDBitmapHalfToneType.ELLIPSEBitmapHalfToneType.LINEBitmapHalfToneType.SQUAREBitmapHalfToneType.CROSS

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 119: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 120: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BitmapConversionType Thequalityofanimageconvertedtobitmapmode.

Value Name

BitmapConversionType.CUSTOMPATTERN

BitmapConversionType.DIFFUSIONDITHER

Page 121: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BitmapConversionType.HALFTHRESHOLD

BitmapConversionType.HALFTONESCREEN

Page 122: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BitmapConversionType.PATTERNDITHER

Usage AspropertyBitmapConversionOptions.method

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 123: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 124: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BitmapHalfToneType Theshapeofthedots(inkdeposits)inthehalftone

screen.

Value Name

BitmapHalfToneType.CROSS

BitmapHalfToneType.DIAMOND

BitmapHalfToneType.ELLIPSE

BitmapHalfToneType.LINE

BitmapHalfToneType.ROUND

BitmapHalfToneType.SQUARE

Usage AspropertyBitmapConversionOptions.shape

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 125: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 126: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BitsPerChannelType Thenumberofbitspercolorchannel.

Value Name

BitsPerChannelType.EIGHT

BitsPerChannelType.ONE

BitsPerChannelType.SIXTEEN

BitsPerChannelType.THIRTYTWO

Usage InfunctionDocumentDocuments.add([width

UnitValue][,resolution:numbermode:NewDocumentMode=NewDocumentMode.RGBinitialFill:DocumentFill=DocumentFill.WHITEpixelAspectRatio:number=1.0BitsPerChannelType=BitsPerChannelType.EIGHT[,colorProfileName:string])

AspropertyCameraRAWOpenOptions.bitsPerChannelDocument.bitsPerChannelPDFOpenOptions.bitsPerChannel

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 127: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 128: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BlendMode Controlshowpixelsintheimageareblended.

Value Name Description

BlendMode.COLORBLEND Createsaresultcolorwiththeluminanceofthebasecolorandthehueandsaturationoftheblendcolor.Thispreservesthegraylevelsintheimageandisusefulforcoloringmonochromeimagesandfortintingcolorimages.

BlendMode.COLORBURN Looksatthecolorinformationineachchannelanddarkensthebasecolortoreflecttheblendcolorbyincreasingthecontrast.Blendingwithwhiteproducesnochange.

BlendMode.COLORDODGE Looksatthecolorinformationineachchannelandbrightensthebasecolortoreflecttheblendcolorbydecreasingthecontrast.Blendingwithblackproducesnochange.

BlendMode.DARKEN Looksatthecolorinformationineachchannelandselectsthebaseorblendcolor�whicheverisdarker�astheresult

Page 129: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

color.Pixelslighterthantheblendcolorarereplaced,andpixelsdarkerthantheblendcolordonotchange.

BlendMode.DARKERCOLOR Lightercolorslightentheresult,anddarkercolorsdarkentheresult.50%grayasablendcolorhasnoeffectontheresultcolor.Loweringthefillopacitycreateslessposterization/thresholding.

BlendMode.DIFFERENCE Looksatthecolorinformationineachchannelandsubtractseithertheblendcolorfromthebasecolororthebasecolorfromtheblendcolor,dependingonwhichhasthegreaterbrightnessvalue.Blendingwithwhiteinvertsthebasecolorvalues;blendingwithblackproducesnochange.

BlendMode.DISSOLVE Editsorpaintseachpixeltomakeittheresultcolor.However,theresultcolorisarandomreplacementofthepixelswiththebasecolorortheblendcolor,dependingontheopacityatanypixellocation.

BlendMode.EXCLUSION Createsaneffectsimilartobutlowerincontrast

Page 130: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

thantheDifferencemode.Blendingwithwhiteinvertsthebasecolorvalues.Blendingwithblackproducesnochange.

BlendMode.HARDLIGHT Multipliesorscreensthecolors,dependingontheblendcolor.Theeffectissimilartoshiningaharshspotlightontheimage.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightened,asifitwerescreened.Thisisusefulforaddinghighlightstoanimage.Iftheblendcolorisdarkerthan50%gray,theimageisdarkened,asifitweremultiplied.Thisisusefulforaddingshadowstoanimage.Paintingwithpureblackorwhiteresultsinpureblackorwhite.

BlendMode.HARDMIX Lightercolorslightentheresult,anddarkercolorsdarkentheresult.50%grayasablendcolorhasnoeffectontheresultcolor.Loweringthefillopacitycreateslessposterization/thresholding.

BlendMode.HUE Createsaresultcolorwiththeluminanceandsaturationofthebasecolorandthehueofthe

Page 131: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

blendcolor.

BlendMode.LIGHTEN Looksatthecolorinformationineachchannelandselectsthebaseorblendcolor�whicheverislighter�astheresultcolor.Pixelsdarkerthantheblendcolorarereplaced,andpixelslighterthantheblendcolordonotchange.

BlendMode.LIGHTERCOLOR Lightercolorslightentheresult,anddarkercolorsdarkentheresult.50%grayasablendcolorhasnoeffectontheresultcolor.Loweringthefillopacitycreateslessposterization/thresholding.

BlendMode.LINEARBURN Looksatthecolorinformationineachchannelanddarkensthebasecolortoreflecttheblendcolorbydecreasingthebrightness.Blendingwithwhiteproducesnochange.

BlendMode.LINEARDODGE Looksatthecolorinformationineachchannelandbrightensthebasecolortoreflecttheblendcolorbyincreasingthebrightness.Blendingwithblackproducesnochange.

Page 132: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BlendMode.LINEARLIGHT Burnsordodgesthecolorsbydecreasingorincreasingthebrightness,dependingontheblendcolor.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightenedbyincreasingthebrightness.Iftheblendcolorisdarkerthan50%gray,theimageisdarkenedbydecreasingthebrightness.

BlendMode.LUMINOSITY Createsaresultcolorwiththehueandsaturationofthebasecolorandtheluminanceoftheblendcolor.ThismodecreatesaninverseeffectfromthatoftheColormode.

BlendMode.MULTIPLY Looksatthecolorinformationineachchannelandmultipliesthebasecolorbytheblendcolor.Theresultcolorisalwaysadarkercolor.Multiplyinganycolorwithblackproducesblack.Multiplyinganycolorwithwhiteleavesthecolorunchanged.Whenyou�repaintingwithacolorotherthanblackorwhite,successivestrokeswithapaintingtoolproduceprogressivelydarkercolors.Theeffectissimilartodrawingon

Page 133: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

theimagewithmultiplemarkingpens.

BlendMode.NORMAL Editsorpaintseachpixeltomakeittheresultcolor.(Called"Threshold"whenyou�reworkingwithabitmappedorindexed-colorimage.)

BlendMode.OVERLAY Multipliesorscreensthecolors,dependingonthebasecolor.Patternsorcolorsoverlaytheexistingpixelswhilepreservingthehighlightsandshadowsofthebasecolor.Thebasecolorisnotreplacedbutismixedwiththeblendcolortoreflectthelightnessordarknessoftheoriginalcolor.

BlendMode.PASSTHROUGH Allowsanyblendmodes,advancedblendingoptions,andopacityandfillvaluesappliedtolayerswithinasettoaffectlayersbelowthesetintheLayerspalette.Validonlyforlayersets.Torestrictblendmodesofthelayerswithinaset,changethelayerset'sblendmodetoNormal.

BlendMode.PINLIGHT Replacesthecolors,dependingontheblendcolor.Iftheblendcolor(lightsource)islighter

Page 134: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

than50%gray,pixelsdarkerthantheblendcolorarereplaced,andpixelslighterthantheblendcolordonotchange.Iftheblendcolorisdarkerthan50%gray,pixelslighterthantheblendcolorarereplaced,andpixelsdarkerthantheblendcolordonotchange.Thisisusefulforaddingspecialeffectstoanimage.

BlendMode.SATURATION Createsaresultcolorwiththeluminanceandhueofthebasecolorandthesaturationoftheblendcolor.Paintingwiththismodeinanareawithno(0)saturation(gray)causesnochange.

BlendMode.SCREEN Looksateachchannel�scolorinformationandmultipliestheinverseoftheblendandbasecolors.Theresultcolorisalwaysalightercolor.Screeningwithblackleavesthecolorunchanged.Screeningwithwhiteproduceswhite.Theeffectissimilartoprojectingmultiplephotographicslidesontopofeachother.

BlendMode.SOFTLIGHT Darkensorlightensthe

Page 135: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

colors,dependingontheblendcolor.Theeffectissimilartoshiningadiffusedspotlightontheimage.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightenedasifitweredodged.Iftheblendcolorisdarkerthan50%gray,theimageisdarkenedasifitwereburnedin.Paintingwithpureblackorwhiteproducesadistinctlydarkerorlighterareabutdoesnotresultinpureblackorwhite.

BlendMode.VIVIDLIGHT Burnsordodgesthecolorsbyincreasingordecreasingthecontrast,dependingontheblendcolor.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightenedbydecreasingthecontrast.Iftheblendcolorisdarkerthan50%gray,theimageisdarkenedbyincreasingthecontrast.

Usage AspropertyLayer.blendMode

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 136: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 137: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ByteOrder Theplatform-specificorderinwhichbyteswillbe

read.

Value Name Description Value

ByteOrder.IBM IBMPC. int1

ByteOrder.MACOS MacOS. int2

Usage AspropertyRawFormatOpenOptions.byteOrderTiffSaveOptions.byteOrder

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 138: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 139: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CameraRAWSettingsType ThedefaultCameraRAWsettings.

Value Name

CameraRAWSettingsType.CAMERA

CameraRAWSettingsType.CUSTOM

CameraRAWSettingsType.SELECTEDIMAGE

Usage AspropertyCameraRAWOpenOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 140: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 141: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CameraRAWSize ThecameraRAWimagesize.

Value Name Description

CameraRAWSize.EXTRALARGE 5120x3413image.

CameraRAWSize.LARGE 4096x2731image.

CameraRAWSize.MAXIMUM 6144x4096image.

CameraRAWSize.MEDIUM 3072x2048image.

CameraRAWSize.MINIMUM 1536x1024image.

CameraRAWSize.SMALL 2048x1365image.

Usage AspropertyCameraRAWOpenOptions.size

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 142: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 143: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Case Thecapitalizationtouse.

Value Name Description Value

Case.ALLCAPS Usesalluppercaseletters. int2

Case.NORMAL Usesuppercaseandlowercaseletters.

int1

Case.SMALLCAPS Usessmallcapsforlowercaseletters.

int3

Usage AspropertyTextItem.capitalization

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 144: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 145: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ChangeMode Thedestinationcolormode.Note:Colorimagesmustbe

changedtoGrayscalemodebeforeyoucanchangethemtoBitmapmode.

Value Name Description

ChangeMode.BITMAP Bitmap.Note:ColorimagesmustbechangedtoGrayscalemodebeforeyoucanchangethemtoBitmapmode.

ChangeMode.CMYK CMYK.

ChangeMode.GRAYSCALE Grayscale.

ChangeMode.INDEXEDCOLOR Indexedcolor,inwhichthenumberofcolorsintheimageisreducedtoatmost256,thestandardnumberofcolorssupportedbytheGIFandPNG-8formatsandmanymultimedia

Page 146: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

applications.Thisconversionreducesfilesizebydeletingcolorinformationfromtheimage.Toconverttoindexedcolor,youmuststartwithanimagethatis8bitsperchannelandineitherGrayscaleorRGBmode.

ChangeMode.LAB Lab.

ChangeMode.MULTICHANNEL Imagewithmultiplecolorchannels.Uses256levelsofgrayineachchannel.Usefulforspecializedprinting.Colorchannelsintheoriginalimagebecomespot

Page 147: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

colorchannelsintheconvertedimage.ACMYKimageconvertedtoMultichannelmodecreatescyan,magenta,yellow,andblackspotchannels.AnRGBimageconvertedMultichannelmodecreatescyan,magenta,andyellowspotchannels.Thenewgrayscaleinformationisbasedonthecolorvaluesofthepixelsineachchannel.MultichannelmodeimagescanbesavedinPhotoshop,Photoshop2.0,

Page 148: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PhotoshopRaw,orPhotoshopDCS2.0format.Toexportamultichannelimage,saveitinPhotoshopDCS2.0format.

ChangeMode.RGB RGB.

Usage InfunctionvoidDocument.changeMode(destinationMode:

ChangeMode[,options:DocumentConversionOptions])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 149: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 150: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Channel Objectthatstoresinformationaboutacolorelementintheimage,

analogoustoaplateintheprintingprocessthatappliesasinglecolor.Thedocument'scolormodedeterminesthenumberofdefaultchannels.Forexample,anRGBdocumenthasfourdefaultchannels:Acompositechannel:RGB;andthreecomponentchannels:red,green,andblue.Achannelcanalsobeanalphachannel,whichstoresselectionsasmasks;oraspotchannel,whichstoresspotcolors.

QuickLinks duplicate,duplicate,merge,remove,removeAll

Hierarchy Object

Channel

Properties Property Type Access Description

color SolidColor r/w Thecolorofthechannel.Notvalidforcomponentchannels.

histogram Arrayofint readonly Ahistogramofthecolorofthechannel.

kind ChannelType:ChannelType.COMPONENTChannelType.MASKEDAREAChannelType.SELECTEDAREAChannelType.SPOTCOLOR

r/w Thetypeofchannel.

name string r/w Thechannelname.

opacity number r/w Theopacityofalpha

Page 151: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

channels(calledsolidityforspotchannels).Range:0to100.Validonlywhen'type'=maskedareaorselectedarea.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

visible bool r/w Iftrue,thechannelisvisible.

Methods InstancesChannelduplicate(relativeObject:Object,insertionLocationElementPlacement)Duplicatethisobject.Parameter Type Description

relativeObject Object

insertionLocation ElementPlacement:ElementPlacement.PLACEAFTERElementPlacement.PLACEBEFOREElementPlacement.PLACEATEND

Channelduplicate([targetDocument:Document])Duplicatesthechannel.Parameter Type Description

Page 152: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

targetDocument Document Thedocumenttoduplicatethechannelto.(Optional)

voidmerge()Mergesaspotchannelintothecomponentchannels.

voidremove()Deletesthisobject.

voidremoveAll()Deletesallelements.

Elementof Document.activeChannelsDocument.componentChannelsLayerSet.enabledChannels

Usedin: voidDocument.autoCount(channel:Channel,threshold:int)voidSelection.load(from:Channel[,combination:

SelectionType=SelectionType.REPLACE][,inverting:bool=false])

voidSelection.store(into:Channel[,combination:SelectionType=SelectionType.REPLACE])

Return ChannelChannel.duplicate(relativeObject:Object,insertionLocationElementPlacement)

ChannelChannel.duplicate([targetDocument:Document])ChannelChannels.[](index:uint)ChannelChannels.add()ChannelChannels.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 153: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 154: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ChannelType Thetypeofchannel.

Value Name Description Value

ChannelType.COMPONENT Thechannelrelatedtothedocumentcolormodel.

int

ChannelType.MASKEDAREA Theaphachannelwherecolorindicatesamaskedarea.

int

ChannelType.SELECTEDAREA Thelphachannelwherecolorindicatesaselectedarea.

int

ChannelType.SPOTCOLOR Thealphachanneltostoreaspotcolor.

int

Usage AspropertyChannel.kind

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 155: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 156: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorBlendMode Thecolorblendmodetype.

Value Name Description

ColorBlendMode.BEHIND Editsorpaintsonlyonthetransparentpartofalayer.Worksonlyinlayersinwhichtransparentpixelslocked=falseandisanalogoustopaintingonthebackoftransparentareasonasheetofacetate.

ColorBlendMode.CLEAR Editsorpaintseachpixelandmakesittransparent.Worksonlyinlayersinwhichtransparentpixelslocked=false.

ColorBlendMode.COLOR Createsaresultcolorwiththeluminanceofthebasecolorandthehueandsaturationoftheblendcolor.Thispreservesthegraylevelsintheimageandisusefulforcoloringmonochromeimagesandfortintingcolorimages.

ColorBlendMode.COLORBURN Looksatthecolorinformationineachchannelanddarkensthebasecolortoreflecttheblendcolorbyincreasingthecontrast.Blendingwithwhiteproducesnochange.

Page 157: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorBlendMode.COLORDODGE Looksatthecolorinformationineachchannelandbrightensthebasecolortoreflecttheblendcolorbydecreasingthecontrast.Blendingwithblackproducesnochange.

ColorBlendMode.DARKEN Looksatthecolorinformationineachchannelandselectsthebaseorblendcolor�whicheverisdarker�astheresultcolor.Pixelslighterthantheblendcolorarereplaced,andpixelsdarkerthantheblendcolordonotchange.

ColorBlendMode.DIFFERENCE Looksatthecolorinformationineachchannelandsubtractseithertheblendcolorfromthebasecolororthebasecolorfromtheblendcolor,dependingonwhichhasthegreaterbrightnessvalue.Blendingwithwhiteinvertsthebasecolorvalues;blendingwithblackproducesnochange.

ColorBlendMode.DISSOLVE Editsorpaintseachpixeltomakeittheresultcolor,whichisarandomreplacementofthepixelswiththebasecolororthe

Page 158: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

blendcolor,dependingontheopacityatanypixellocation.

ColorBlendMode.EXCLUSION CreatesaneffectsimilartobutlowerincontrastthantheDifferencemode.Blendingwithwhiteinvertsthebasecolorvalues.Blendingwithblackproducesnochange.

ColorBlendMode.HARDLIGHT Multipliesorscreensthecolors,dependingontheblendcolor.Theeffectissimilartoshiningaharshspotlightontheimage.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightened,asifitwerescreened.Thisisusefulforaddinghighlightstoanimage.Iftheblendcolorisdarkerthan50%gray,theimageisdarkened,asifitweremultiplied.Thisisusefulforaddingshadowstoanimage.Paintingwithpureblackorwhiteresultsinpureblackorwhite.

ColorBlendMode.HARDMIXBLEND Lightercolorslightentheresult,anddarkercolorsdarkentheresult.50%grayasablendcolorhasnoeffectontheresultcolor.Loweringthefillopacitycreatesless

Page 159: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

posterization/thresholding.

ColorBlendMode.HUE Createsaresultcolorwiththeluminanceandsaturationofthebasecolorandthehueoftheblendcolor.

ColorBlendMode.LIGHTEN Looksatthecolorinformationineachchannelandselectsthebaseorblendcolor�whicheverislighter�astheresultcolor.Pixelsdarkerthantheblendcolorarereplaced,andpixelslighterthantheblendcolordonotchange.

ColorBlendMode.LINEARBURN Looksatthecolorinformationineachchannelanddarkensthebasecolortoreflecttheblendcolorbydecreasingthebrightness.Blendingwithwhiteproducesnochange.

ColorBlendMode.LINEARDODGE Looksatthecolorinformationineachchannelandbrightensthebasecolortoreflecttheblendcolorbyincreasingthebrightness.Blendingwithblackproducesnochange.

ColorBlendMode.LINEARLIGHT Burnsordodgesthecolorsbydecreasingorincreasingthebrightness,

Page 160: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

dependingontheblendcolor.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightenedbyincreasingthebrightness.Iftheblendcolorisdarkerthan50%gray,theimageisdarkenedbydecreasingthebrightness.

ColorBlendMode.LUMINOSITY Createsaresultcolorwiththehueandsaturationofthebasecolorandtheluminanceoftheblendcolor.ThismodecreatesaninverseeffectfromthatoftheColormode.

ColorBlendMode.MULTIPLY Looksatthecolorinformationineachchannelandmultipliesthebasecolorbytheblendcolor.Theresultcolorisalwaysadarkercolor.Multiplyinganycolorwithblackproducesblack.Multiplyinganycolorwithwhiteleavesthecolorunchanged.Whenyou�repaintingwithacolorotherthanblackorwhite,successivestrokeswithapaintingtoolproduceprogressivelydarkercolors.Theeffectissimilartodrawingontheimagewithmultiplemarkingpens.

Page 161: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorBlendMode.NORMAL Editsorpaintseachpixeltomakeittheresultcolor.(Called"Threshold"whenyou�reworkingwithabitmappedorindexed-colorimage.)

ColorBlendMode.OVERLAY Multipliesorscreensthecolors,dependingonthebasecolor.Patternsorcolorsoverlaytheexistingpixelswhilepreservingthehighlightsandshadowsofthebasecolor.Thebasecolorisnotreplacedbutismixedwiththeblendcolortoreflectthelightnessordarknessoftheoriginalcolor.

ColorBlendMode.PINLIGHT Replacesthecolors,dependingontheblendcolor.Iftheblendcolor(lightsource)islighterthan50%gray,pixelsdarkerthantheblendcolorarereplaced,andpixelslighterthantheblendcolordonotchange.Iftheblendcolorisdarkerthan50%gray,pixelslighterthantheblendcolorarereplaced,andpixelsdarkerthantheblendcolordonotchange.Thisisusefulforaddingspecialeffectstoanimage.

ColorBlendMode.SATURATION Createsaresultcolorwith

Page 162: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

theluminanceandhueofthebasecolorandthesaturationoftheblendcolor.Paintingwiththismodeinanareawithno(0)saturation(gray)causesnochange.

ColorBlendMode.SCREEN Looksateachchannel�scolorinformationandmultipliestheinverseoftheblendandbasecolors.Theresultcolorisalwaysalightercolor.Screeningwithblackleavesthecolorunchanged.Screeningwithwhiteproduceswhite.Theeffectissimilartoprojectingmultiplephotographicslidesontopofeachother.

ColorBlendMode.SOFTLIGHT Darkensorlightensthecolors,dependingontheblendcolor.Theeffectissimilartoshiningadiffusedspotlightontheimage.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightenedasifitweredodged.Iftheblendcolorisdarkerthan50%gray,theimageisdarkenedasifitwereburnedin.Paintingwithpureblackorwhiteproducesadistinctlydarkerorlighterareabutdoesnotresultinpure

Page 163: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

blackorwhite.

ColorBlendMode.VIVIDLIGHT Burnsordodgesthecolorsbyincreasingordecreasingthecontrast,dependingontheblendcolor.Iftheblendcolor(lightsource)islighterthan50%gray,theimageislightenedbydecreasingthecontrast.Iftheblendcolorisdarkerthan50%gray,theimageisdarkenedbyincreasingthecontrast.

Usage InfunctionvoidPathItem.fillPath([fillColor:any][,mode

opacity:number][,preserveTransparencyantiAlias:bool][,wholePath:bool])

voidSelection.fill(fillType:any[,mode:ColorBlendMode=ColorBlendMode.NORMAL[,preserveTransparency:bool])

voidSelection.stroke(strokeColor:any,widthStrokeLocation=StrokeLocation.CENTERColorBlendMode=ColorBlendMode.NORMAL[,preserveTransparency:bool])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 164: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 165: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorPicker Thecolorpickertouse.

Value Name Description Value

ColorPicker.ADOBE TheAdobeColorPicker.

int1

ColorPicker.APPLE Thebuilt-inApplecolorpicker.

int2

ColorPicker.PLUGIN Aninstalledplug-incolorpicker.

int4

ColorPicker.WINDOWS Thebuilt-inWindowscolorpicker.

int3

Usage AspropertyPreferences.colorPicker

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 166: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 167: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorProfile Thetypeofcolormodelthatdefinesthe

document'sworkingspace.

Value Name Description Value

ColorProfile.CUSTOM Colormanagesthisdocumentusingacustomcolorprofile.

int3

ColorProfile.NONE Thedocumentisnotcolormanaged.

int1

ColorProfile.WORKING Colormanagesthisdocumentusingtheworkingcolorprofile.

int2

Usage AspropertyDocument.ColorProfile

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 168: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 169: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorReductionType Thecolorreductionalgorithm.

Value Name

ColorReductionType.ADAPTIVE

ColorReductionType.BLACKWHITE

ColorReductionType.CUSTOM

ColorReductionType.GRAYSCALE

ColorReductionType.MACINTOSH

Page 170: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorReductionType.PERCEPTUAL

ColorReductionType.RESTRICTIVE

ColorReductionType.SELECTIVE

Page 171: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorReductionType.WINDOWS

Usage AspropertyExportOptionsSaveForWeb.colorReduction

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 172: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 173: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorSampler Acolorsamplerinadocument.

QuickLinks add,move,remove,removeAll

Hierarchy Object

ColorSampler

Properties Property Type Access Description

color SolidColor readonly Thecolorofthecolorsampler.

parent Object readonly Theobject'scontainer.

position UnitPoint readonly Thepositionofthecolorsamplerinthedocument.

typename string readonly Theclassnameoftheobject.

Methods InstancesColorSampleradd()Addsanelement.

voidmove(position:UnitPoint)Movesthecolorsamplertoanewlocation.Parameter Type Description

position UnitPoint Positionof

Page 174: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

destination(unitvalue)

voidremove()Deletesthisobject.

voidremoveAll()Deletesallelements.

Return ColorSamplerColorSampler.add()ColorSamplerColorSamplers.[](index:uint)ColorSamplerColorSamplers.add(position:

UnitPoint)ColorSamplerColorSamplers.getByName

(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 175: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 176: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorSpaceType Thetypeofcolorspace.

Value Name Description

ColorSpaceType.ADOBERGB UsetheAdobeRGBcolorspace.

ColorSpaceType.COLORMATCHRGB UsetheColorMatchRGBcolorspace.

ColorSpaceType.PROPHOTORGB UsetheProPhotoRGBcolorspace.

ColorSpaceType.SRGB UsethesRGBcolorspace.

Usage AspropertyCameraRAWOpenOptions.colorSpace

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 177: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 178: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ContactSheetOptions Optionsthatcanbespecifiedforacontactsheet.

Class Property Type

acrossFirst bool

bestFit bool

caption bool

columnCount int

flatten bool

font GalleryFontTypeGalleryFontType.ARIALGalleryFontType.COURIERNEWGalleryFontType.HELVETICAGalleryFontType.TIMESNEWROMAN

fontSize int

height int

horizontal int

Page 179: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

mode NewDocumentModeNewDocumentMode.GRAYSCALENewDocumentMode.RGBNewDocumentMode.CMYKNewDocumentMode.LABNewDocumentMode.BITMAP

resolution number

rowCount int

useAutoSpacing bool

vertical int

width int

Usedin: stringApplication.makeContactSheet

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 180: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 181: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CopyrightedType Thecopyrightstatusofthedocument.

Value Name

CopyrightedType.COPYRIGHTEDWORK

CopyrightedType.PUBLICDOMAIN

CopyrightedType.UNMARKED

Usage AspropertyDocumentInfo.copyrighted

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 182: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 183: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CountItem Acountediteminthedocument.Thecountitem

featureisavailableintheExtendedVersiononly.

QuickLinks add,remove,removeAll

Hierarchy Object

CountItem

Properties Property Type Access Description

parent Object readonly Theobject'scontainer.

position UnitPoint readonly Thepositionofcountiteminthedocument.

typename string readonly Theclassnameoftheobject.

Methods InstancesCountItemadd()Addsanelement.

voidremove()Deletesthisobject.

voidremoveAll()Deletesallelements.

Return CountItemCountItem.add()CountItemCountItems.[](index:uint)CountItemCountItems.add(position:UnitPoint)CountItemCountItems.getByName(name:string)

Jongware,28-Aug-2012 Contents::Index

Page 184: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

v3.0.3i

Page 185: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 186: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CropToType Thestyletousewhencroppingapage.

Value Name Description Value

CropToType.ARTBOX Croptotheartbox.

int5

CropToType.BLEEDBOX Croptothebleedbox.

int3

CropToType.BOUNDINGBOX Croptotheboundingbox.

int0

CropToType.CROPBOX Croptothecropbox.

int2

CropToType.MEDIABOX Croptothemediabox.

int1

CropToType.TRIMBOX Croptothetrimbox.

int4

Usage AspropertyPDFOpenOptions.cropPage

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 187: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 188: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DCSType TheDCSformat.

Value Name Description Value

DCSType.COLORCOMPOSITE CreatesacolorcompositefileinadditiontoDCSfiles.

int

DCSType.GRAYSCALECOMPOSITE CreatesagrayscalecompositefileinadditiontoDCSfiles.

int

DCSType.NOCOMPOSITE Doesnotcreateacompositefile.

int

Usage AspropertyDCS1_SaveOptions.DCSDCS2_SaveOptions.DCS

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 189: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 190: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DepthMapSource Depthmapsourceoptions.

Value Name

DepthMapSource.IMAGEHIGHLIGHT

DepthMapSource.LAYERMASK

DepthMapSource.NONE

DepthMapSource.TRANSPARENCYCHANNEL

Usage InfunctionvoidArtLayer.applyLensBlur([source:

DepthMapSource=DepthMapSource.NONEint=0][,invertDepthMap:bool=falseGeometry=Geometry.HEXAGON][,bladeCurvature:int=0][,rotation:intthreshold:int=0][,amount:int=0][,distributionNoiseDistribution=NoiseDistribution.UNIFORMmonochromatic:bool=false])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 191: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 192: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DialogModes ControlswhetherPhotoshopdisplaysdialogs

duringscripts.

Value Name Description Value

DialogModes.ALL Showalldialogs.

int1

DialogModes.ERROR Showonlydialogsrelatedtoerrors.

int2

DialogModes.NO Shownodialogs.

int3

Usage InfunctionActionDescriptorApplication.executeAction

(eventID:int[,descriptor:ActionDescriptor][,displayDialogs:DialogModes])

AspropertyApplication.displayDialogsApplication.playbackDisplayDialogs

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 193: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 194: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Direction Theorientationoftheobject.

Value Name Description Value

Direction.HORIZONTAL Horizontal. int1

Direction.VERTICAL Vertical. int2

Usage InfunctionvoidDocument.flipCanvas(direction:Direction)AspropertyTextItem.directionTextItem.warpDirection

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 195: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 196: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Dither Thetypeofdither.

Value Name Description Value

Dither.DIFFUSION Diffusesdithereffectsinrandompatternsacrossadjacentpixels.

int2

Dither.NOISE Appliesarandompatternbutwithoutdiffusingthepatternacrossadjacentpixels;preventstheappearanceofseams.

int4

Dither.NONE Noditherisused. int1

Dither.PATTERN Appliesahalftone-likesquarepattern.

int3

Usage AspropertyExportOptionsSaveForWeb.ditherExportOptionsSaveForWeb.transparencyDitherGIFSaveOptions.ditherIndexedConversionOptions.dither

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 197: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 198: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DocPositionStyle Positionofdocumentwhenprinting.

Value Name Description

DocPositionStyle.PRINTCENTERED Printimagecenteredonpage.

DocPositionStyle.SIZETOFIT Resizeimagetofitonpagewhenprinting.

DocPositionStyle.USERDEFINED Printusinguserdefinedspacing.

Usage InfunctionvoidDocumentPrintSettings.setPagePosition

DocPositionStyle[,posX:UnitValue][,UnitValue][,scale:number=100])

AspropertyDocumentPrintSettings.docPosition

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 199: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 200: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DocumentConversionOptions Optionsforconvertingdocuments.

SuperclassofBitmapConversionOptionsIndexedConversionOptions

Usedin: voidDocument.changeMode(destinationModeChangeModeDocumentConversionOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 201: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 202: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DocumentFill Thedocumentwindowfilltype.

Value Name Description

DocumentFill.BACKGROUNDCOLOR Thebackgroundcolorasdisplayedinthetoolbox.

DocumentFill.TRANSPARENT Transparent.

DocumentFill.WHITE White.

Usage InfunctionDocumentDocuments.add([width:UnitValue][,height

UnitValue][,resolution:number=72][,name:mode:NewDocumentMode=NewDocumentMode.RGB[,initialFill:DocumentFill=DocumentFill.WHITEpixelAspectRatio:number=1.0][,bitsPerChannelBitsPerChannelType=BitsPerChannelType.EIGHTcolorProfileName:string])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 203: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 204: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DocumentInfo Metadataaboutadocumentobject.ThesevaluescanbesetbyselectingFile>FileInfointhe

AdobePhotoshopapplication.

Hierarchy Object

DocumentInfo

Properties Property Type

author string

authorPosition string

caption string

captionWriter string

category string

city string

copyrightNotice string

copyrighted CopyrightedType:CopyrightedType.COPYRIGHTEDWORKCopyrightedType.PUBLICDOMAINCopyrightedType.UNMARKED

country string

creationDate string

credit string

Page 205: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

exif Arrayofany

headline string

instructions string

jobName string

keywords Arrayofstring

ownerUrl string

parent Object

provinceState string

source string

supplementalCategories Arrayofstring

Page 206: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

title string

transmissionReference string

typename string

urgency Urgency:Urgency.NONEUrgency.LOWUrgency.TWOUrgency.THREEUrgency.FOURUrgency.NORMALUrgency.SIXUrgency.SEVENUrgency.HIGH

Elementof Document.info

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 207: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 208: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DocumentMode Thedocument'scolormode.

Value Name Description

DocumentMode.BITMAP Bitmap,whichusesoneoftwocolorvalues(blackorwhite)torepresentthepixelsinanimage.

DocumentMode.CMYK CMYK.

DocumentMode.DUOTONE Duotonemode,whichcreatesmonotone,duotone(two-color),tritone(three-color),andquadtone(four-color)grayscaleimagesusingonetofourcustominks.

DocumentMode.GRAYSCALE Grayscale.

DocumentMode.INDEXEDCOLOR Indexedcolor,in

Page 209: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

whichthenumberofcolorsintheimageisatmost256,thestandardnumberofcolorssupportedbytheGIFandPNG-8formatsandmanymultimediaapplications.

DocumentMode.LAB Lab.

DocumentMode.MULTICHANNEL Imagewithmultiplecolorchannels.

DocumentMode.RGB RGB.

Usage AspropertyDocument.mode

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 210: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 211: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DocumentPrintSettings Printsettingsforadocument.

QuickLinks setPagePosition

Hierarchy

Properties Property Type

activePrinter string

backgroundColor SolidColor

bleedWidth UnitValue

caption bool

centerCropMarks bool

colorBars bool

colorHandling PrintColorHandlingPrintColorHandling.PRINTERMANAGEDPrintColorHandling.PHOTOSHOPMANAGEDPrintColorHandling.SEPARATIONSPrintColorHandling.NOTMANAGED

copies number

Page 212: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

cornerCropMarks bool

docPosition DocPositionStyleDocPositionStyle.PRINTCENTEREDDocPositionStyle.SIZETOFITDocPositionStyle.USERDEFINED

flip bool

hardProof bool

interpolate bool

labels bool

mapBlack bool

negative bool

parent Object

posX UnitValue

posY UnitValue

printBorder UnitValue

printSelected bool

Page 213: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

printSpace string

printers Arrayofstring

registrationMarks bool

renderIntent Intent:

Page 214: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Intent.PERCEPTUALIntent.SATURATIONIntent.RELATIVECOLORIMETRICIntent.ABSOLUTECOLORIMETRIC

scale number

typename string

vectorData bool

Methods InstancesvoidsetPagePosition(docPosition[,scale:number=100])Setthepositionoftheimageonthepage.Parameter Type

docPosition DocPositionStyleDocPositionStyle.PRINTCENTEREDDocPositionStyle.SIZETOFITDocPositionStyle.USERDEFINED

posX UnitValue

posY UnitValue

scale number

Page 215: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Elementof Document.printSettings

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 216: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 217: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

EditLogItemsType Thehistorylogeditoptions.

Value Name Description

EditLogItemsType.CONCISE Saveaconcisehistorylog.

EditLogItemsType.DETAILED Saveadetailedhistorylog.

EditLogItemsType.SESSIONONLY Saveahistoryforonlyforthesession.

Usage AspropertyPreferences.editLogItems

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 218: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 219: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ExportType Theexportoptionstouse.

Value Name Description Value

ExportType.ILLUSTRATORPATHS ExportsPhotoshoppathsasAdobeIllustratorfiles.

int

ExportType.SAVEFORWEB Usesthesaveforwebexportoptions.

int

Usage InfunctionvoidDocument.exportDocument(exportIn:File[,exportAs

ExportType=ExportType.ILLUSTRATORPATHS[,options:ExportOptions])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 220: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 221: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Extension Theformattingforthefilenameextension.

Value Name Description Value

Extension.LOWERCASE Theextensionisinlowercaseletters.

int2

Extension.NONE Doesnotuseanextension.

int1

Extension.UPPERCASE Theextensionisinuppercaseletters.

int3

Usage InfunctionvoidDocument.saveAs(saveIn:File[,options:any][,

asCopy:bool][,extensionType:Extension])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 222: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 223: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

FileNamingType Filenamingoptionsforthebatchcommand.

Value Name

FileNamingType.DDMM

FileNamingType.DDMMYY

FileNamingType.DOCUMENTNAMELOWER

FileNamingType.DOCUMENTNAMEMIXED

FileNamingType.DOCUMENTNAMEUPPER

FileNamingType.EXTENSIONLOWER

FileNamingType.EXTENSIONUPPER

Page 224: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

FileNamingType.MMDD

FileNamingType.MMDDYY

FileNamingType.SERIALLETTERLOWER

FileNamingType.SERIALLETTERUPPER

FileNamingType.SERIALNUMBER1

FileNamingType.SERIALNUMBER2

FileNamingType.SERIALNUMBER3

FileNamingType.SERIALNUMBER4

FileNamingType.YYDDMM

Page 225: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

FileNamingType.YYMMDD

FileNamingType.YYYYMMDD

Usage AspropertyBatchOptions.fileNaming

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 226: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 227: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

FontPreviewType ThetypesizetouseforfontpreviewsintheType

toolfontmenus.

Value Name Description

FontPreviewType.LARGE Largetype.

FontPreviewType.MEDIUM Mediumtype.

FontPreviewType.NONE Nopreview.

FontPreviewType.SMALL Smalltype.

Usage AspropertyPreferences.fontPreviewSize

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 228: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 229: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ForcedColors Thecolorswhoseinclusiontoforceinthecolortable.

Value Name Description Value

ForcedColors.BLACKWHITE Forcespureblackandwhite.

int

ForcedColors.NONE Noforcedcolors.

int

ForcedColors.PRIMARIES Forcesred,green,blue,cyan,magenta,yellow,black,andwhite.

int

ForcedColors.WEB Forcesthe216web-safecolors.

int

Usage AspropertyGIFSaveOptions.forcedIndexedConversionOptions.forced

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 230: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 231: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

FormatOptions TheoptionsforsavingaJPEGfile.

Value Name Description

FormatOptions.OPTIMIZEDBASELINE Baseline(Optimized).Optimizedcolorandaslightlyreducedfilesize.

FormatOptions.PROGRESSIVE Displaysaseriesofincreasinglydetailedscansastheimagedownloads.

FormatOptions.STANDARDBASELINE Baseline(Standard).Recognizedbymostwebbrowsers.

Usage AspropertyJPEGSaveOptions.formatOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 232: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 233: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryBannerOptions DeprecatedforAdobePhotoshopCS3,themakephotogallerymethodhasmovedtoBridge.

Class Property Type

contactInfo string

date string

font GalleryFontTypeGalleryFontType.ARIALGalleryFontType.COURIERNEWGalleryFontType.HELVETICAGalleryFontType.TIMESNEWROMAN

fontSize int(range:1-7)

photographer string

siteName string

Elementof GalleryOptions.bannerOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 234: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 235: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryConstrainType DeprecatedforAdobePhotoshopCS3.Constrainvaluesforimages.

Value Name

GalleryConstrainType.CONSTRAINBOTH

GalleryConstrainType.CONSTRAINHEIGHT

GalleryConstrainType.CONSTRAINWIDTH

Usage AspropertyGalleryImagesOptions.resizeConstraint

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 236: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 237: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryCustomColorOptions DeprecatedforAdobePhotoshopCS3,themake

photogallerymethodhasmovedtoBridge.

Class Property

activeLinkColor

backgroundColor

bannerColor

linkColor

textColor

visitedLinkColor

Elementof GalleryOptions.customColorOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 238: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 239: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryFontType Fontsforwebphotogallerytext.

Value Name

GalleryFontType.ARIAL

GalleryFontType.COURIERNEW

GalleryFontType.HELVETICA

GalleryFontType.TIMESNEWROMAN

Usage AspropertyContactSheetOptions.fontGalleryBannerOptions.fontGalleryImagesOptions.fontGallerySecurityOptions.fontGalleryThumbnailOptions.fontPicturePackageOptions.font

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 240: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 241: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryImagesOptions DeprecatedforAdobePhotoshopCS3,themakephotogallerymethodhasmovedtoBridge.

Class Property Type

border int(range:0-99)

caption bool

dimension int

font GalleryFontTypeGalleryFontType.ARIALGalleryFontType.COURIERNEWGalleryFontType.HELVETICAGalleryFontType.TIMESNEWROMAN

fontSize int(range:1-7)

imageQuality int(range:0-12)

includeCopyright bool

includeCredits bool

includeFilename bool

includeTitle bool

numericLinks bool

resizeConstraint GalleryConstrainTypeGalleryConstrainType.CONSTRAINWIDTH

Page 242: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryConstrainType.CONSTRAINHEIGHTGalleryConstrainType.CONSTRAINBOTH

resizeImages bool

Elementof GalleryOptions.imagesOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 243: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 244: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryOptions DeprecatedforAdobePhotoshopCS3,themakephotogallerymethodhas

movedtoBridge.

Class Property Type

addSizeAttributes bool

bannerOptions GalleryBannerOptions

customColorOptions GalleryCustomColorOptions

emailAddress string

imagesOptions GalleryImagesOptions

includeSubFolders bool

Page 245: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

layoutStyle string

preserveAllMetadata bool

securityOptions GallerySecurityOptions

thumbnailOptions GalleryThumbnailOptions

useShortExtension bool

Page 246: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

useUTF8Encoding bool

Usedin: stringApplication.makePhotoGallery(inputFolderFile[,options:GalleryOptions])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 247: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 248: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GallerySecurityOptions DeprecatedforAdobePhotoshopCS3,themakephotogallerymethodhasmovedtoBridge.

Class Property Type

content GallerySecurityTypeGallerySecurityType.NONEGallerySecurityType.CUSTOMTEXTGallerySecurityType.FILENAMEGallerySecurityType.COPYRIGHTGallerySecurityType.CAPTIONGallerySecurityType.CREDITGallerySecurityType.TITLE

font GalleryFontTypeGalleryFontType.ARIALGalleryFontType.COURIERNEWGalleryFontType.HELVETICAGalleryFontType.TIMESNEWROMAN

fontSize int(min:1)

opacity int

text string

textColor RGBColor

textPosition GallerySecurityTextPositionTypeGallerySecurityTextPositionType.CENTEREDGallerySecurityTextPositionType.UPPERLEFTGallerySecurityTextPositionType.LOWERLEFTGallerySecurityTextPositionType.UPPERRIGHTGallerySecurityTextPositionType.LOWERRIGHT

textRotate GallerySecurityTextRotateTypeGallerySecurityTextRotateType.ZEROGallerySecurityTextRotateType.CLOCKWISE45GallerySecurityTextRotateType.CLOCKWISE90

Page 249: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GallerySecurityTextRotateType.COUNTERCLOCKWISE45GallerySecurityTextRotateType.COUNTERCLOCKWISE90

Elementof GalleryOptions.securityOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 250: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 251: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GallerySecurityTextColorType Thecolortousefortextdisplayedovergalleryimagesasan

antitheftdeterrent.

Value Name

GallerySecurityTextColorType.BLACK

GallerySecurityTextColorType.CUSTOM

GallerySecurityTextColorType.WHITE

Usage

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 252: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 253: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GallerySecurityTextPositionType Thepositionofthetextdisplayedovergalleryimagesasanantitheft

deterrent.

Value Name

GallerySecurityTextPositionType.CENTERED

GallerySecurityTextPositionType.LOWERLEFT

GallerySecurityTextPositionType.LOWERRIGHT

GallerySecurityTextPositionType.UPPERLEFT

GallerySecurityTextPositionType.UPPERRIGHT

Usage AspropertyGallerySecurityOptionsPicturePackageOptions

Jongware,28-

Page 254: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Aug-2012v3.0.3i Contents::Index

Page 255: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 256: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GallerySecurityTextRotateType DeprecatedforAdobePhotoshopCS3.webphotogallerysecuritytextrotation

types.

Value Name

GallerySecurityTextRotateType.CLOCKWISE45

GallerySecurityTextRotateType.CLOCKWISE90

GallerySecurityTextRotateType.COUNTERCLOCKWISE45

GallerySecurityTextRotateType.COUNTERCLOCKWISE90

GallerySecurityTextRotateType.ZERO

Usage AspropertyGallerySecurityOptionsPicturePackageOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 257: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 258: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GallerySecurityType DeprecatedforAdobePhotoshopCS3.Webphotogallery

securitytypes.

Value Name

GallerySecurityType.CAPTION

GallerySecurityType.COPYRIGHT

GallerySecurityType.CREDIT

GallerySecurityType.CUSTOMTEXT

GallerySecurityType.FILENAME

GallerySecurityType.NONE

GallerySecurityType.TITLE

Usage AspropertyGallerySecurityOptions.content

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 259: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 260: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryThumbSizeType DeprecatedforAdobePhotoshopCS3.Webphotogallery

thumbsizetypes.

Value Name

GalleryThumbSizeType.CUSTOM

GalleryThumbSizeType.LARGE

GalleryThumbSizeType.MEDIUM

GalleryThumbSizeType.SMALL

Usage AspropertyGalleryThumbnailOptions.size

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 261: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 262: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryThumbnailOptions DeprecatedforAdobePhotoshopCS3,themakephotogallerymethodhasmovedtoBridge.

Class Property Type

border int(range:0-99)

caption bool

columnCount int

dimension int

font GalleryFontTypeGalleryFontType.ARIALGalleryFontType.COURIERNEWGalleryFontType.HELVETICAGalleryFontType.TIMESNEWROMAN

fontSize int(range:1-7)

includeCopyright bool

includeCredits bool

includeFilename bool

includeTitle bool

rowCount int

size GalleryThumbSizeType

Page 263: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GalleryThumbSizeType.SMALLGalleryThumbSizeType.MEDIUMGalleryThumbSizeType.LARGEGalleryThumbSizeType.CUSTOM

Elementof GalleryOptions.thumbnailOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 264: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 265: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Geometry Geometricoptionsforshapes,suchastheirisshapein

theLensBlurFilter.

Value Name Description Value

Geometry.HEPTAGON Heptagon. int4

Geometry.HEXAGON Hexagon. int2

Geometry.OCTAGON Octagon. int5

Geometry.PENTAGON Pentagon. int1

Geometry.SQUARE Square. int3

Geometry.TRIANGLE Triangle. int0

Usage InfunctionvoidArtLayer.applyLensBlur([source:

DepthMapSource=DepthMapSource.NONE][,focalDistance:int=0][,invertDepthMap:bool=false][,shape:Geometry=Geometry.HEXAGON][,radius:int=15][,bladeCurvature:int=0][,rotation:int=0][,brightness:int=0][,threshold:int=0][,amount:int=0][,distribution:NoiseDistribution=NoiseDistribution.UNIFORM][,monochromatic:bool=false])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 266: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 267: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GridLineStyle Thelinestylefornonprintinggridsdisplayed

overimages.

Value Name Description Value

GridLineStyle.DASHED Dashed. int2

GridLineStyle.DOTTED Dotted. int3

GridLineStyle.SOLID Solid. int1

Usage AspropertyPreferences.gridStyle

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 268: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 269: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GridSize Thesizeofgridsquares.

Value Name Description Value

GridSize.LARGE Largegridsquares. int4

GridSize.MEDIUM Mediumgridsquares. int3

GridSize.NONE Nogridisdisplayed. int1

GridSize.SMALL Smallgridsquares. int2

Usage AspropertyPreferences.gridSize

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 270: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 271: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GuideLineStyle Thelinestylefornonprintingguidesdisplayed

overimages.

Value Name Description Value

GuideLineStyle.DASHED Dashed. int

GuideLineStyle.SOLID Solid. int

Usage AspropertyPreferences.guideStyle

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 272: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 273: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

HistoryState Aversionofthedocumentstoredautomatically

(andaddedtothehistorystatescollection,whichpreservesthedocumentstateeachtimethedocumentischanged).

Hierarchy Object

HistoryState

Properties Property Type Access Description

name string readonly Thehistorystatename.

parent Object readonly Theobject'scontainer.

snapshot bool readonly Iftrue,thehistorystateisasnapshot.

typename string readonly Theclassnameoftheobject.

Elementof Document.activeHistoryBrushSourceDocument.activeHistoryState

Return HistoryStateHistoryStates.[](index:uint)HistoryStateHistoryStates.getByName(name:

string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 274: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 275: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

IllustratorPathType Thepathstoexport.

Value Name

IllustratorPathType.ALLPATHS

IllustratorPathType.DOCUMENTBOUNDS

IllustratorPathType.NAMEDPATH

Usage AspropertyExportOptionsIllustrator.path

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 276: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 277: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

IndexedConversionOptions OptionsforconvertinganRGBimagetoanindexedcolormodel.BaseClass:

DocumentConversionOptions

Class Property

colors

dither

ditherAmount

forced

matte

Page 278: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

palette

preserveExactColors

transparency

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 279: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 280: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Intent Thecolorconversionintent.

Value Name Description Value

Intent.ABSOLUTECOLORIMETRIC Aimstomaintaincoloraccuracyattheexpenseofpreservingrelationshipsbetweencolorsandissuitableforproofingtosimulatetheoutputofaparticulardevice.Thisintentisparticularlyusefulforpreviewinghowpapercoloraffectsprintedcolors.Leavescolorsthatfallinsidethedestinationgamutunchanged.Outofgamutcolorsareclipped.Noscalingofcolorstodestination

int4

Page 281: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

whitepointisperformed.

Intent.PERCEPTUAL Givesprioritytocolorsforwhichthehumaneyehasgreatersensitivity.Suitableforphotographicimageswithalotofoutofgamutcolors.ThisisthestandardrenderingintentfortheJapaneseprintingindustry.

int1

Intent.RELATIVECOLORIMETRIC Comparestheextremehighlightofthesourcecolorspacetothatofthedestinationcolorspaceandshiftsallcolorsaccordingly.Outofgamutcolorsareshiftedtotheclosestreproduciblecolorinthedestination

int3

Page 282: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

colorspace.ThestandardrenderingintentforprintinginNorthAmericaandEurope.

Intent.SATURATION Triestoproducevividcolorsinanimageattheexpenseofcoloraccuracy.Suitableforbusinessgraphicslikegraphsorcharts,wherebrightsaturatedcolorsaremoreimportantthantheexactrelationshipbetweencolors.

int2

Usage InfunctionvoidDocument.convertProfile(destinationProfile:string,intent:

Intent[,blackPointCompensation:bool][,dither:bool=true])

voidDocument.print([postScriptEncoding:PrintEncoding=PrintEncoding.BINARY][,sourceSpace:SourceSpaceType=SourceSpaceType.DOCUMENT][,

Page 283: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

printSpace:string][,intent:Intent=Intent.RELATIVECOLORIMETRIC][,blackPointCompensation:bool=true])

AspropertyDocumentPrintSettings.renderIntent

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 284: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 285: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

JavaScriptExecutionMode WhenshouldaJavaScriptdebuggerbeshown.

Value Name

JavaScriptExecutionMode.BEFORERUNNING

JavaScriptExecutionMode.NEVER

JavaScriptExecutionMode.ONRUNTIMEERROR

Usage

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 286: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 287: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Justification Theplacementofparagraphtextwithinthebounding

box.

Value Name Description Value

Justification.CENTER Textiscenteredoneachline.

int

Justification.CENTERJUSTIFIED Justifiesalllinesexceptthelast,whichiscenter-aligned.

int

Justification.FULLYJUSTIFIED Justifiesalllinesincludingthelast,whichisforce-justified.

int

Justification.LEFT Alignstheleftedges,leavingtherightedgeragged.

int

Justification.LEFTJUSTIFIED Justifiesalllinesexceptthelast,whichisleft-aligned.

int

Justification.RIGHT Alignstherightedges,

int

Page 288: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

leavingtheleftedgeragged.

Justification.RIGHTJUSTIFIED Justifiesalllinesexceptthelast,whichisright-aligned.

int

Usage AspropertyTextItem.justification

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 289: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 290: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Language Thelanguagetouse.

Value Name Description

Language.BRAZILLIANPORTUGUESE BrazillianPortuguese.

Language.CANADIANFRENCH CanadianFrench.

Language.DANISH Danish.

Language.DUTCH Dutch.

Language.ENGLISHUK BritishEnglish.

Language.ENGLISHUSA AmericanEnglish.

Language.FINNISH Finnish.

Language.FRENCH French.

Language.GERMAN German.

Language.ITALIAN Italian.

Language.NORWEGIAN Norwegian.

Language.NYNORSKNORWEGIAN NynorskNorwegian.

Language.OLDGERMAN OldGerman.

Language.PORTUGUESE Portuguese.

Language.SPANISH Spanish.

Language.SWEDISH Swedish.

Language.SWISSGERMAN Swiss

Page 291: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

German.

Usage AspropertyTextItem.language

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 292: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 293: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Layer Alayerobject.

SuperclassofArtLayer,LayerSetLayersmaycontainnestedlayers,whicharecalledsublayersintheuserinterface.Thelayerobjectcontainsallofthepageitemsinthespecificlayeraselements.Yourscriptcanaccesspageitemsaselementsofeitherthelayerobjectorthedocumentobject.

QuickLinks duplicate,link,move,moveToEnd,remove,removeAll,resize,rotate

Hierarchy Object

Layer

ArtLayer|LayerSet

Properties Property Type Access Description

allLocked bool r/w Iftrue,thelayer'scontentsandsettingsarelocked.

blendMode BlendMode:BlendMode.PASSTHROUGHBlendMode.NORMALBlendMode.DISSOLVEBlendMode.DARKENBlendMode.MULTIPLYBlendMode.COLORBURNBlendMode.LINEARBURNBlendMode.LIGHTENBlendMode.SCREENBlendMode.COLORDODGEBlendMode.LINEARDODGEBlendMode.OVERLAYBlendMode.SOFTLIGHTBlendMode.HARDLIGHTBlendMode.VIVIDLIGHTBlendMode.LINEARLIGHT

r/w Themodetousewhencompositinganobject.

Page 294: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BlendMode.PINLIGHTBlendMode.DIFFERENCEBlendMode.EXCLUSIONBlendMode.HUEBlendMode.SATURATIONBlendMode.COLORBLENDBlendMode.LUMINOSITYBlendMode.HARDMIXBlendMode.LIGHTERCOLORBlendMode.DARKERCOLOR

bounds UnitRect readonly BoundingrectangleoftheLayer.

linkedLayers ArrayofLayer readonly Thelayerslinkedtothislayer.

name string r/w Thenameofthelayer.

opacity number(range:0-100) r/w Thelayer'smasteropacity(asapercentage).Range:0.0to100.0.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

visible bool r/w Iftrue,thelayerisvisible.

xmpMetadata XMPMetadata readonly TheXMPpropertiesofthedocument.TheCameraRAWsettingsarestoredhere.

Methods InstancesLayerduplicate([relativeObject:Object][,insertionLocation:ElementPlacementDuplicatethisobject.Parameter Type

relativeObject Object

insertionLocation ElementPlacement:ElementPlacement.PLACEAFTERElementPlacement.PLACEBEFORE

Page 295: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ElementPlacement.PLACEATEND

voidlink(with:Layer)Linksthelayerwiththespecifiedlayer.Parameter Type Description

with Layer Thelayertolinkto.

Layermove(relativeObject:Object,insertionLocation:ElementPlacementMovetheobject.Parameter Type

relativeObject Object

insertionLocation ElementPlacement:ElementPlacement.PLACEAFTERElementPlacement.PLACEBEFOREElementPlacement.PLACEATEND

voidmoveToEnd([layerSet:LayerSet])...Parameter Type Description

layerSet LayerSet (Optional)

voidremove()Deletesthisobject.

voidremoveAll()Deletesallelements.

voidresize([horizontal:number=100][,vertical:number=100][,AnchorPosition=AnchorPosition.MIDDLECENTER])Scalestheobject.Parameter Type Description

horizontal number Theamounttoscaletheobjecthorizontally(asapercentage).(default:100

vertical number Theamounttoscaletheobjectvertically(asapercentage).(default:

Page 296: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

100)(Optional)

anchor AnchorPosition:AnchorPosition.TOPLEFTAnchorPosition.TOPCENTERAnchorPosition.TOPRIGHTAnchorPosition.MIDDLELEFTAnchorPosition.MIDDLECENTERAnchorPosition.MIDDLERIGHTAnchorPosition.BOTTOMLEFTAnchorPosition.BOTTOMCENTERAnchorPosition.BOTTOMRIGHT

Thepointtoresizeabout.(default:AnchorPosition.MIDDLECENTER(Optional)

voidrotate(angle:number[,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER])Rotatestheobject.Parameter Type Description

angle number Thenumberofdegreestorotatetheobject.

anchor AnchorPosition:AnchorPosition.TOPLEFTAnchorPosition.TOPCENTERAnchorPosition.TOPRIGHTAnchorPosition.MIDDLELEFTAnchorPosition.MIDDLECENTERAnchorPosition.MIDDLERIGHTAnchorPosition.BOTTOMLEFTAnchorPosition.BOTTOMCENTERAnchorPosition.BOTTOMRIGHT

Thepointtorotateabout.(default:AnchorPosition.MIDDLECENTER(Optional)

voidtranslate([deltaX:UnitValue][,deltaY:UnitValue])Movestheobjectrelativetoitscurrentposition.Parameter Type Description

deltaX UnitValue Theamounttomovetheobjecthorizontally.(Optional)

deltaY UnitValue Theamounttomovetheobjectvertically.(Optional)

voidunlink()

Page 297: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Unlinksthelayer.

Elementof Document.activeLayerLayer.linkedLayers

Usedin: voidLayer.link(with:Layer)

Return LayerLayer.duplicate([relativeObject:Object][,insertionLocationLayerLayer.move(relativeObject:Object,insertionLocation:ElementPlacementLayerLayers.[](index:uint)LayerLayers.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 298: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 299: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LayerComp Asnapshotofastateofthelayersinadocument

(canbeusedtoviewdifferentpagelayoutsorcompostions).

QuickLinks add,apply,recapture,remove,removeAll,resetFromComp

Hierarchy Object

LayerComp

Properties Property Type Access Description

appearance bool r/w Iftrue,useslayerappearance(layerstyles)settings.

comment any r/w Thedescriptionofthelayercomp.

name string r/w Thenameofthelayercomp.

parent Object readonly Theobject'scontainer.

position bool r/w Iftrue,useslayerposition.

selected bool readonly Iftrue,thelayercompiscurrentlyselected.

typename string readonly Theclassnameoftheobject.

visibility bool r/w Iftrue,thelayercompisvisible.

Page 300: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Methods InstancesLayerCompadd()Addsanelement.

voidapply()Appliesthelayercomptothedocument.

voidrecapture()Recapturesthecurrentlayerstate(s)forthislayercomp.

voidremove()Deletesthisobject.

voidremoveAll()Deletesallelements.

voidresetFromComp()Resetsthelayercompstatetothedocumentstate.

Return LayerCompLayerComp.add()LayerCompLayerComps.[](index:uint)LayerCompLayerComps.add(name:string[,

comment:string][,appearance:bool=false][,position:bool=false][,visibility:bool=true])

LayerCompLayerComps.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 301: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 302: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LayerCompression Thelayercompressiontype.

Value Name Description

LayerCompression.RLE RunLengthEncoding,whichislossless.

LayerCompression.ZIP Zipcompression,whichislosslessandmosteffectiveforimagesthatcontainlargeareasofsinglecolor.

Usage AspropertyTiffSaveOptions.layerCompression

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 303: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 304: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LayerKind Thetypesofartlayers.

Value Name Description

LayerKind.BLACKANDWHITE Blackandwhitelayer.

LayerKind.BRIGHTNESSCONTRAST Brightnesscontrastadjustmentlayer.

LayerKind.CHANNELMIXER Channelmixeradjustmentlayer.

LayerKind.COLORBALANCE Colorbalanceadjustmentlayer.

LayerKind.CURVES Curvesadjustmentlayer.

LayerKind.EXPOSURE Exposurelayer.

LayerKind.GRADIENTFILL Gradientfill.

LayerKind.GRADIENTMAP Gradientmapadjustmentlaye.

LayerKind.HUESATURATION Huesaturationadjustment

Page 305: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

laye.

LayerKind.INVERSION Invertadjustmentlayer.

LayerKind.LAYER3D 3Dlayer.

LayerKind.LEVELS Levelsadjustmentlayer.

LayerKind.NORMAL Normal.

LayerKind.PATTERNFILL Patternfill.

LayerKind.PHOTOFILTER Photofilterlayer.

LayerKind.POSTERIZE Posterizeadjustmentlayer.

LayerKind.SELECTIVECOLOR Selectivecoloradjustmentlayer.

LayerKind.SMARTOBJECT Smartobjectlayer.

LayerKind.SOLIDFILL Solidcolor.

LayerKind.TEXT Text.

LayerKind.THRESHOLD Thresholdadjustmentlayer.

LayerKind.VIBRANCE Vibrancelayer.

LayerKind.VIDEO Videolayer.

Page 306: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Usage AspropertyArtLayer.kind

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 307: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 308: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LayerSet Agroupoflayerobjects,whichcanincludeartlayer

objectsandother(nested)layersetobjects.Asinglecommandorsetofcommandsmanipulatesalllayersinalayersetobject.BaseClass:Layer

QuickLinks merge

Hierarchy Object

Layer

LayerSet

Properties Property Type Access Description

artLayers ArtLayersArtLayer

readonly Theartlayerscontainedinthislayerset.

enabledChannels ArrayofChannel

r/w Thechannelsthatareenabledforthelayerset.Mustbealistofcomponentchannels.

layerSets LayerSetsLayerSet

readonly Thelayersetscontainedwithinthelayerset.

layers LayersLayer

readonly Thelayersinthislayerset.

parent Object readonly Theobject'scontainer.

Page 309: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

typename string readonly Theclassnameoftheobject.

Methods InstancesArtLayermerge()Mergesthelayerset.

Usedin: voidLayer.moveToEnd([layerSet:LayerSet])

Return LayerSetLayerSets.[](index:uint)LayerSetLayerSets.add()LayerSetLayerSets.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 310: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 311: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

MagnificationType ThePDFmagnificationtype.

Value Name Description

MagnificationType.ACTUALSIZE Displaystheimageatactualsize.

MagnificationType.FITPAGE Fitstheimagetothepage.

Usage AspropertyPresentationOptions.magnification

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 312: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 313: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

MatteType Thecolortouseformatting.

Value Name Description Value

MatteType.BACKGROUND Thecurrentbackgroundcolor.

int3

MatteType.BLACK Black. int5

MatteType.FOREGROUND Thecurrentforegroundcolor.

int2

MatteType.NETSCAPE Gray. int7

MatteType.NONE None. int1

MatteType.SEMIGRAY 50%gray. int6

MatteType.WHITE White. int4

Usage AspropertyGIFSaveOptions.matteIndexedConversionOptions.matteJPEGSaveOptions.matte

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 314: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 315: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

MeasurementLog Thelogofmeasurementstaken.

QuickLinks deleteMeasurements,exportMeasurements

Hierarchy Object

MeasurementLog

Properties Property Type Access Description

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesvoiddeleteMeasurements([range:MeasurementRangeDeletesthespecifiedmeasurements.Parameter Type

range MeasurementRange:MeasurementRange.ALLMEASUREMENTSMeasurementRange.ACTIVEMEASUREMENTS

voidexportMeasurements([file:File][,dataPoints:Arrayofstring])Exportsthespecifiedmeasurements.Parameter Type

file File

Page 316: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

range MeasurementRange:MeasurementRange.ALLMEASUREMENTSMeasurementRange.ACTIVEMEASUREMENTS

dataPoints Arrayofstring

Elementof Application.measurementLog

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 317: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 318: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

MeasurementRange Themeasurementuponwhichtotakeaction.

Value Name

MeasurementRange.ACTIVEMEASUREMENTS

MeasurementRange.ALLMEASUREMENTS

Usage InfunctionvoidMeasurementLog.deleteMeasurementsvoidMeasurementLog.exportMeasurements

MeasurementRange][,dataPoints

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 319: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 320: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

MeasurementScale Themeasurementscaleforthedocument.

Hierarchy Object

MeasurementScale

Properties Property Type Access Description

logicalLength number r/w Thelogicallengththisscaleequatesto.

logicalUnits string r/w Thelogicalunitsforthisscale.

name string r/w Thenameofthescale.

parent Object readonly Theobject'scontainer.

pixelLength int r/w Thelength(inpixels)towhichthisscaleequates.

typename string readonly Theclassnameoftheobject.

Elementof Document.measurementScale

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 321: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 322: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

MeasurementSource Thesourceforrecordingmeasurements.

Value Name

MeasurementSource.MEASURECOUNTTOOL

MeasurementSource.MEASURERULERTOOL

MeasurementSource.MEASURESELECTION

Usage InfunctionvoidDocument.recordMeasurements

dataPoints:Arrayofstring])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 323: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 324: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

NewDocumentMode Thecolorprofiletouse.

Value Name

NewDocumentMode.BITMAP

NewDocumentMode.CMYK

NewDocumentMode.GRAYSCALE

NewDocumentMode.LAB

NewDocumentMode.RGB

Usage InfunctionDocumentDocuments.add([width:

UnitValue][,resolution:numbermode:NewDocumentMode=NewDocumentMode.RGBinitialFill:DocumentFill=DocumentFill.WHITEpixelAspectRatio:number=1.0BitsPerChannelType=BitsPerChannelType.EIGHT[,colorProfileName:string])

AspropertyContactSheetOptions.modePicturePackageOptions.mode

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 325: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 326: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OpenDocumentMode Thecolorprofiletouse.

Value Name

OpenDocumentMode.CMYK

OpenDocumentMode.GRAYSCALE

OpenDocumentMode.LAB

OpenDocumentMode.RGB

Usage AspropertyEPSOpenOptions.modePDFOpenOptions.mode

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 327: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 328: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OpenDocumentType DocumentformatsthatPhotoshopcanopen.

Value Name

OpenDocumentType.ALIASPIX

OpenDocumentType.BMP

OpenDocumentType.CAMERARAW

OpenDocumentType.COMPUSERVEGIF

OpenDocumentType.DICOM

OpenDocumentType.ELECTRICIMAGE

OpenDocumentType.EPS

OpenDocumentType.EPSPICTPREVIEW

OpenDocumentType.EPSTIFFPREVIEW

OpenDocumentType.FILMSTRIP

OpenDocumentType.JPEG

Page 329: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OpenDocumentType.PCX

OpenDocumentType.PDF

OpenDocumentType.PHOTOCD

OpenDocumentType.PHOTOSHOP

OpenDocumentType.PHOTOSHOPDCS_1

OpenDocumentType.PHOTOSHOPDCS_2

OpenDocumentType.PHOTOSHOPEPS

OpenDocumentType.PHOTOSHOPPDF

OpenDocumentType.PICTFILEFORMAT

OpenDocumentType.PICTRESOURCEFORMAT

OpenDocumentType.PIXAR

OpenDocumentType.PNG

OpenDocumentType.PORTABLEBITMAP

Page 330: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OpenDocumentType.RAW

OpenDocumentType.SCITEXCT

OpenDocumentType.SGIRGB

OpenDocumentType.SOFTIMAGE

OpenDocumentType.TARGA

OpenDocumentType.TIFF

OpenDocumentType.WAVEFRONTRLA

OpenDocumentType.WIRELESSBITMAP

Usage

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 331: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 332: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OperatingSystem Theoperatingsystem.

Value Name Description

OperatingSystem.OS2 MacOS/2operatingsystem.

OperatingSystem.WINDOWS Windowsoperatingsystem.

Usage AspropertyBMPSaveOptions.osType

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 333: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 334: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Orientation Theimageorientationonthemedia.

Value Name Description Value

Orientation.LANDSCAPE Landscape. int1

Orientation.PORTRAIT Portrait. int2

Usage AspropertyPhotoCDOpenOptions.orientation

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 335: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 336: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OtherPaintingCursors Thepointerforthefollowingtools:Eraser,Pencil,Paintbrush,

HealingBrush,RubberStamp,PatternStamp,Smudge,Blur,Sharpen,Dodge,Burn,Sponge.

Value Name

OtherPaintingCursors.PRECISEOTHER

OtherPaintingCursors.STANDARDOTHER

Usage AspropertyPreferences.otherCursors

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 337: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 338: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFCompatibility ThePDFversionwithwhichtomakethe

documentcompatible.

Value Name Description

PDFCompatibility.PDF13 PDF1.3(Acrobat4orhigher).

PDFCompatibility.PDF14 PDF1.4(Acrobat5orhigher).

PDFCompatibility.PDF15 PDF1.5(Acrobat6orhigher).

PDFCompatibility.PDF16 PDF1.6(Acrobat7orhigher)

PDFCompatibility.PDF17 PDF1.7(Acrobat9orhigher)

Usage AspropertyPDFSaveOptions.PDFCompatibility

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 339: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 340: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFResample DownsamplingoptionswhensavingasPDF.

Value Name Description

PDFResample.NONE Doesnotdownsample.

PDFResample.PDFAVERAGE Averagesthepixelsinasampleareaandreplacestheentireareawiththeaveragepixelcoloratthespecifiedresolution.

PDFResample.PDFBICUBIC Usesaweightedaveragetodeterminepixelcolor,whichusuallyyieldsbetterresultsthanthesimpleaveragingmethodofdownsampling.Theslowestbutmostprecisemethod,resultinginthesmoothestgradations.

Page 341: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFResample.PDFSUBSAMPLE Choosesapixelinthecenterofthesampleareaandreplacestheentireareawiththatpixelcolor;significantlyreducesconversiontimebutresultsinimagesthatarelesssmoothandcontinuous.

Usage AspropertyPDFSaveOptions.downSample

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 342: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 343: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFStandard ThePDF/Xstandardwithwhichthedocument

complies.

Value Name Description Value

PDFStandard.NONE ThedocumentdoesnotusethePDF/Xstandard.

int0

PDFStandard.PDFX1A2001 PDF/X-1astandard,whichrequiresallfontstobeembedded,theappropriatePDFboundingboxestobespecified,andcolortoappearasCMYK,spotcolors,orboth;canbeopenedinAcrobat4.0andAcrobatReader4.0andlater.

int1

PDFStandard.PDFX1A2003 PDF/X-1astandard,which

int2

Page 344: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

requiresallfontstobeembedded,theappropriatePDFboundingboxestobespecified,andcolortoappearasCMYK,spotcolors,orboth;canbeopenedinAcrobat4.0andAcrobatReader4.0andlater.

PDFStandard.PDFX32002 PDF/X-3standard,whichrequiresallfontstobeembeddedandtheappropriatePDFboundingboxestobespecified,andforcolorallowseithertheuseofcolormanagementanddevice-independent

int3

Page 345: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

color(CIEL*a*b,ICC-basedcolorspaces,CalRGB,andCalGray)orCMYK,spotcolors,orboth;canbeopenedinAcrobat4.0andAcrobatReader4.0andlater.

PDFStandard.PDFX32003 PDF/X-3standard,whichrequiresallfontstobeembeddedandtheappropriatePDFboundingboxestobespecified,andforcolorallowseithertheuseofcolormanagementanddevice-independentcolor(CIEL*a*b,ICC-basedcolorspaces,

int4

Page 346: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CalRGB,andCalGray)orCMYK,spotcolors,orboth;canbeopenedinAcrobat4.0andAcrobatReader4.0andlater.

PDFStandard.PDFX42008 PDF/X-4standard,whichrequiresallfontstobeembeddedandtheappropriatePDFboundingboxestobespecified,andforcolorallowseithertheuseofcolormanagementanddevice-independentcolor(CIEL*a*b,ICC-basedcolorspaces,CalRGB,andCalGray)orCMYK,

int5

Page 347: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

spotcolors,orboth;canbeopenedinAcrobat4.0andAcrobatReader4.0andlater.

Usage AspropertyPDFSaveOptions.PDFStandard

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 348: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 349: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PICTCompression ThecompressiontypetousewhansavingasPICT.

Value Name

PICTCompression.JPEGHIGHPICT

PICTCompression.JPEGLOWPICT

PICTCompression.JPEGMAXIMUMPICT

PICTCompression.JPEGMEDIUMPICT

PICTCompression.NONE

Usage AspropertyPICTFileSaveOptions.compressionPICTResourceSaveOptions.compression

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 350: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 351: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PaintingCursors Thepointerforthefollowingtools:Marquee,Lasso,

PolygonalLasso,MagicWand,Crop,Slice,PatchEyedropper,Pen,Gradient,Line,PaintBucket,MagneticLasso,MagneticPen,FreeformPen,Measure,andColorSampler.

Value Name Description

PaintingCursors.BRUSHSIZE Displayscursorsasbrushshapesrepresentingthesizeofthecurrentbrush.Validonlyforpaintingcursors.Brushsizecursorsmaynotappearforverylargebrushes.

PaintingCursors.PRECISE Displayspointersascrosshairs.

PaintingCursors.STANDARD Displayspointersastoolicons.

Usage AspropertyPreferences.paintingCursors

Page 352: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 353: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 354: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Palette Thepalettetypeforconvertinganimagetoindexedcolor.

Value Name Description Value

Palette.EXACT ThepaletteusestheexactcolorsappearingintheRGBimage;availableonlyiftheimageuses256orfewercolors.Becausetheimage'spalettecontainsallcolorsintheimage,thereisnodithering.

int1

Palette.LOCALADAPTIVE Createsapalettebysamplingthecolorsfromthespectrumappearingmostcommonlyintheimage.Forexample,anRGBimagewithonlythecolorsgreenandblueproducesapalettemadeprimarilyofgreensandblues.

int8

Palette.LOCALPERCEPTUAL Createsa int6

Page 355: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

custompalettebygivingprioritytocolorsforintheimagewhichthehumaneyehasgreatersensitivity.

Palette.LOCALSELECTIVE CreatesacolortablesimilartothePerceptualcolortable,butfavoringbroadareasofcolorintheimageandthepreservationofwebcolors.Usuallyproducesimageswiththegreatestcolorintegrity.

int7

Palette.MACOSPALETTE TheMacOSdefault8-bitpalette,whchisbasedonauniformsamplingofRGBcolors.

int2

Palette.MASTERADAPTIVE Createsapalettebysamplingthecolorsfromthespectrumappearingmostcommonlyinagroupofopenimagesthatsharethesame

int11

Page 356: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

colorpalette.

Palette.MASTERPERCEPTUAL Createsacustompalettebygivingprioritytocolorsinagroupofopenimageswiththesamecolorpaletteforwhichthehumaneyehasgreatersensitivity.

int9

Palette.MASTERSELECTIVE CreatesacolortablesimilartotheMasterPerceptualcolortable,butfavoringbroadareasofcolorandthepreservationofwebcolors.

int10

Palette.PREVIOUSPALETTE Usesthecustompalettefromthepreviousconversion,makingiteasytoconvertseveralimageswiththesamecustompalette.

int12

Palette.UNIFORM CreatesapalettebyuniformlysamplingcolorsfromtheRGB

int5

Page 357: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

colorcube.Forexample,ifPhotoshoptakessixevenlyspacedcolorlevelseachofred,green,andblue,thecombinationproducesauniformpaletteof216colors(6cubed=6x6x6=216).Thetotalnumberofcolorsdisplayedinanimagecorrespondstothenearestperfectcube(8,27,64,125,or216)thatislessthanthevalueintheColorstextbox.

Palette.WEBPALETTE The216-colorpalettethatwebbrowsers,regardlessofplatform,usetodisplayimagesonamonitorlimitedto256colors.AsubsetoftheMacOS8-bitpalette.Usethisoptiontoavoid

int4

Page 358: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

browserditherwhenviewingimagesonamonitordisplaylimitedto256colors.

Palette.WINDOWSPALETTE TheWindowssystem'sdefault8-bitpalette,whchisbasedonauniformsamplingofRGBcolors.

int3

Usage AspropertyGIFSaveOptions.paletteIndexedConversionOptions.palette

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 359: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 360: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PhotoCDColorSpace DeprecatedforAdobePhotoshopCS3.

Value Name Description

PhotoCDColorSpace.LAB16 Labwith16bitsperchannel.

PhotoCDColorSpace.LAB8 Labwith8bitsperchannel.

PhotoCDColorSpace.RGB16 RGBwith16bitsperchannel.

PhotoCDColorSpace.RGB8 RGBwith8bitsperchannel.

Usage AspropertyPhotoCDOpenOptions.colorSpace

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 361: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 362: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PicturePackageOptions OptionsthatcanbespecifiedforaPicturePackage.

Class Property Type

content PicturePackageTextTypePicturePackageTextType.NONEPicturePackageTextType.USERPicturePackageTextType.FILENAMEPicturePackageTextType.COPYRIGHTPicturePackageTextType.CAPTIONPicturePackageTextType.CREDITPicturePackageTextType.ORIGIN

flatten bool

font GalleryFontTypeGalleryFontType.ARIALGalleryFontType.COURIERNEWGalleryFontType.HELVETICAGalleryFontType.TIMESNEWROMAN

fontSize int

layout string

mode NewDocumentModeNewDocumentMode.GRAYSCALENewDocumentMode.RGBNewDocumentMode.CMYKNewDocumentMode.LABNewDocumentMode.BITMAP

opacity int

resolution number

Page 363: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

text string

textColor RGBColor

textPosition GallerySecurityTextPositionTypeGallerySecurityTextPositionType.CENTEREDGallerySecurityTextPositionType.UPPERLEFTGallerySecurityTextPositionType.LOWERLEFTGallerySecurityTextPositionType.UPPERRIGHTGallerySecurityTextPositionType.LOWERRIGHT

textRotate GallerySecurityTextRotateTypeGallerySecurityTextRotateType.ZEROGallerySecurityTextRotateType.CLOCKWISE45GallerySecurityTextRotateType.CLOCKWISE90GallerySecurityTextRotateType.COUNTERCLOCKWISE45GallerySecurityTextRotateType.COUNTERCLOCKWISE90

Usedin: stringApplication.makePicturePackage

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 364: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 365: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PicturePackageTextType ThefunctionormeaningoftextinaPicturePackage.

Value Name

PicturePackageTextType.CAPTION

PicturePackageTextType.COPYRIGHT

PicturePackageTextType.CREDIT

PicturePackageTextType.FILENAME

PicturePackageTextType.NONE

PicturePackageTextType.ORIGIN

PicturePackageTextType.USER

Usage AspropertyPicturePackageOptions.content

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 366: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 367: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PointType Thepointtype.

Value Name Description Value

PointType.POSTSCRIPT 72pointsperinch.

int1

PointType.TRADITIONAL 72.27pointsperinch.

int2

Usage AspropertyPreferences.pointSize

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 368: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 369: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Preferences Optionstodefineforthepreferencespropertyoftheapplicationobject,basicallyequivalenttoselectingEdit

>Preferences(Windows)orPhotoshop>PreferencesintheAdobePhotoshopapplication.

Hierarchy Object

Preferences

Properties Property Type

additionalPluginFolder File

appendExtension SaveBehavior:SaveBehavior.NEVERSAVESaveBehavior.ALWAYSSAVESaveBehavior.ASKWHENSAVING

askBeforeSavingLayeredTIFF bool

autoUpdateOpenDocuments bool

Page 370: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

beepWhenDone bool

colorChannelsInColor bool

colorPicker ColorPicker:ColorPicker.ADOBEColorPicker.APPLEColorPicker.WINDOWSColorPicker.PLUGIN

columnGutter number

columnWidth number

createFirstSnapshot bool

dynamicColorSliders bool

Page 371: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

editLogItems EditLogItemsType:EditLogItemsType.SESSIONONLYEditLogItemsType.CONCISEEditLogItemsType.DETAILED

exportClipboard bool

fontPreviewSize FontPreviewType:FontPreviewType.NONEFontPreviewType.SMALLFontPreviewType.MEDIUMFontPreviewType.LARGE

fullSizePreview bool

gamutWarningOpacity number

Page 372: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

gridSize GridSize:GridSize.NONEGridSize.SMALLGridSize.MEDIUMGridSize.LARGE

gridStyle GridLineStyle:GridLineStyle.SOLIDGridLineStyle.DASHEDGridLineStyle.DOTTED

gridSubDivisions int

guideStyle GuideLineStyle:GuideLineStyle.SOLIDGuideLineStyle.DASHED

iconPreview bool

imageCacheForHistograms bool

imageCacheLevels int

Page 373: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

imagePreviews SaveBehavior:SaveBehavior.NEVERSAVESaveBehavior.ALWAYSSAVESaveBehavior.ASKWHENSAVING

interpolation ResampleMethod:ResampleMethod.NONEResampleMethod.NEARESTNEIGHBORResampleMethod.BILINEARResampleMethod.BICUBICResampleMethod.BICUBICSHARPERResampleMethod.BICUBICSMOOTHER

keyboardZoomResizesWindows bool

macOSThumbnail bool

maxRAMuse int(range:5-100)

Page 374: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

maximizeCompatibility QueryStateType:QueryStateType.ALWAYSQueryStateType.ASKQueryStateType.NEVER

nonLinearHistory bool

numberOfHistoryStates int

otherCursors OtherPaintingCursorsOtherPaintingCursors.STANDARDOTHEROtherPaintingCursors.PRECISEOTHER

paintingCursors PaintingCursors:PaintingCursors.STANDARDPaintingCursors.PRECISEPaintingCursors.BRUSHSIZE

parent Object

pixelDoubling bool

Page 375: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

pointSize PointType:PointType.POSTSCRIPTPointType.TRADITIONAL

recentFileListLength int

rulerUnits Units:Units.PIXELSUnits.INCHESUnits.CMUnits.MMUnits.POINTSUnits.PICASUnits.PERCENT

saveLogItems SaveLogItemsTypeSaveLogItemsType.METADATASaveLogItemsType.LOGFILESaveLogItemsType.LOGFILEANDMETADATA

saveLogItemsFile File

savePaletteLocations bool

Page 376: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

showAsianTextOptions bool

showEnglishFontNames bool

showSliceNumber bool

showToolTips bool

smartQuotes bool

typeUnits TypeUnits:TypeUnits.PIXELSTypeUnits.MMTypeUnits.POINTS

typename string

Page 377: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

useAdditionalPluginFolder bool

useDiffusionDither bool

useHistoryLog bool

useLowerCaseExtension bool

useShiftKeyForToolSwitch bool

useVideoAlpha bool

Page 378: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

windowsThumbnail bool

Elementof Application.preferences

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 379: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 380: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PresentationOptions OptionsforthePDFpresentationcommand.

Class Property Type

PDFFileOptions PDFSaveOptions

autoAdvance bool

includeFilename bool

interval int

loop bool

magnification MagnificationTypeMagnificationType.ACTUALSIZEMagnificationType.FITPAGE

presentation bool

transition TransitionType:TransitionType.BLINDSHORIZONTALTransitionType.BLINDSVERTICALTransitionType.DISSOLVETransitionType.BOXINTransitionType.BOXOUTTransitionType.GLITTERDOWNTransitionType.GLITTERRIGHTTransitionType.GLITTERRIGHTDOWNTransitionType.NONETransitionType.RANDOM

Page 381: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TransitionType.SPLITHORIZONTALINTransitionType.SPLITHORIZONTALOUTTransitionType.SPLITVERTICALINTransitionType.SPLITVERTICALOUTTransitionType.WIPEDOWNTransitionType.WIPELEFTTransitionType.WIPERIGHTTransitionType.WIPEUP

Usedin: stringApplication.makePDFPresentationPresentationOptions])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 382: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 383: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Preview Thetypeofimagetouseasalow-resolutionpreviewinthe

destinationapplication.

Value Name Description Value

Preview.EIGHTBITTIFF 8-bitTIFF. int3

Preview.MACOSEIGHTBIT 8-bit. int5

Preview.MACOSJPEG JPEG. int6

Preview.MACOSMONOCHROME Monochrome. int4

Preview.MONOCHROMETIFF MonochromeTIFF.

int2

Preview.NONE Doesnotuseapreview.

int1

Usage AspropertyDCS1_SaveOptions.previewDCS2_SaveOptions.previewEPSSaveOptions.preview

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 384: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 385: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PrintColorHandling Colorconversiontypewhenprinting.

Value Name

PrintColorHandling.NOTMANAGED

PrintColorHandling.PHOTOSHOPMANAGED

PrintColorHandling.PRINTERMANAGED

PrintColorHandling.SEPARATIONS

Usage AspropertyDocumentPrintSettings.colorHandling

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 386: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 387: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PrintEncoding EncodingtousewhenprintingPostScript.

Value Name Description

PrintEncoding.ASCII ASCII85encoding.ASCII85filescontainabouttwiceasmanycharactersandtaketwiceaslongtotransferasbinaryfiles.

int

PrintEncoding.BINARY Binaryencoding.Someprintspoolerprograms,computernetworks,andthird-partyprinterdriversdon'tsupportbinaryfiles.

int

PrintEncoding.JPEG JPEGencoding.JPEG-encodedfilesaresmallerthanbinaryfilesandtakelesstimetoprint;however,imagequalityisdecreased.OnlyPostScrptLevel2orhigherprinterssupportJPEGencoding.Someprintspooler

int

Page 388: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

programs,computernetworks,andthird-partyprinterdriversdon'tsupportJPEG-encodedfiles.

Usage InfunctionvoidDocument.print([postScriptEncoding:

PrintEncoding=PrintEncoding.BINARYsourceSpace:SourceSpaceType=SourceSpaceType.DOCUMENT[,printSpace:string][,intent:Intent=Intent.RELATIVECOLORIMETRICblackPointCompensation:bool=true])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 389: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 390: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PurgeTarget Thecachetobetargetedinapurgeoperation.

Value Name Description Value

PurgeTarget.ALLCACHES Clearsallcaches.

int

PurgeTarget.CLIPBOARDCACHE Clearstheclipboard.

int

PurgeTarget.HISTORYCACHES DeletesallhistorystatesfromtheHistorypalette.

int

PurgeTarget.UNDOCACHES Clearstheundocache.

int

Usage InfunctionvoidApplication.purge(target:PurgeTarget)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 391: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 392: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

QueryStateType Thepermissionstateforqueries.

Value Name Description

QueryStateType.ALWAYS Alwaysmaximizecompatibility.

QueryStateType.ASK Alwaysaskaboutmaximizecompatibility.

QueryStateType.NEVER Neveraskaboutmaximizecompatibility.

Usage AspropertyPreferences.maximizeCompatibility

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 393: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 394: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

RasterizeType Thetypeofthelayercontenttorasterize.

Value Name Description

RasterizeType.ENTIRELAYER Rasterizesallvectordataonthelayer.

RasterizeType.FILLCONTENT Rasterizesthefillofashapelayer,leavingthevectormask.

RasterizeType.LAYERCLIPPINGPATH Rasterizesthevectormaskofashapelayer,turningitintoalayermask.

RasterizeType.LINKEDLAYERS Rasterizestheselectedlayers.

RasterizeType.SHAPE Rasterizesashapelayer.

RasterizeType.TEXTCONTENTS Rasterizesthetypeonatypelayer.Doesn'trasterizeanyothervectordata

Page 395: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

onthelayer.

Usage InfunctionvoidArtLayer.rasterize(target:RasterizeType)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 396: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 397: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ResampleMethod Themethodtousetoresampletheimage.

Value Name

ResampleMethod.BICUBIC

ResampleMethod.BICUBICSHARPER

Page 398: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ResampleMethod.BICUBICSMOOTHER

ResampleMethod.BILINEAR

ResampleMethod.NEARESTNEIGHBOR

Page 399: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ResampleMethod.NONE

Usage InfunctionvoidDocument.resizeImage([width:UnitValue

[,resolution:number][,resampleMethodResampleMethod=ResampleMethod.BICUBIC

AspropertyPreferences.interpolation

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 400: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 401: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ResetTarget Thetypeofobject(s)toresettodefaultsettings.

Value Name Description Value

ResetTarget.ALLTOOLS Tools. int2

ResetTarget.ALLWARNINGS Warningdialogs.

int1

ResetTarget.EVERYTHING Alltargets. int3

Usage

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 402: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 403: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveBehavior Theapplication'sbehaviorregardingimagepreviewsand

fileextensionswhenasavemethodiscalled.

Value Name Description

SaveBehavior.ALWAYSSAVE Alwayssavetheitemwiththefile.

SaveBehavior.ASKWHENSAVING Prompttheuserwhethertosavetheitemwiththefile.

SaveBehavior.NEVERSAVE Neversavetheitemwiththefile.

Usage AspropertyPreferences.imagePreviewsPreferences.appendExtension

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 404: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 405: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveDocumentType DocumentformatsthatPhotoshopcansaveto.

Value Name

SaveDocumentType.ALIASPIX

SaveDocumentType.BMP

SaveDocumentType.COMPUSERVEGIF

SaveDocumentType.ELECTRICIMAGE

SaveDocumentType.JPEG

SaveDocumentType.PCX

SaveDocumentType.PHOTOSHOP

SaveDocumentType.PHOTOSHOPDCS_1

SaveDocumentType.PHOTOSHOPDCS_2

SaveDocumentType.PHOTOSHOPEPS

SaveDocumentType.PHOTOSHOPPDF

Page 406: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveDocumentType.PICTFileFORMAT

SaveDocumentType.PICTRESOURCEFORMAT

SaveDocumentType.PIXAR

SaveDocumentType.PNG

SaveDocumentType.PORTABLEBITMAP

SaveDocumentType.RAW

SaveDocumentType.SCITEXCT

SaveDocumentType.SGIRGB

SaveDocumentType.SOFTIMAGE

SaveDocumentType.TARGA

SaveDocumentType.TIFF

SaveDocumentType.WAVEFRONTRLA

SaveDocumentType.WIRELESSBITMAP

Usage AspropertyExportOptionsSaveForWeb.format

Page 407: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 408: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 409: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveEncoding Theencodingtousewhensavingdocuments.

Value Name Description

SaveEncoding.ASCII ASCII.

SaveEncoding.BINARY Binary.

SaveEncoding.JPEGHIGH HighqualityJPEGencoding.

SaveEncoding.JPEGLOW LowqualityJPEGencoding(highamountofcompression).

SaveEncoding.JPEGMAXIMUM MaximumqualityJPEGencoding(verylittlecompression).

SaveEncoding.JPEGMEDIUM MediumqualityJPEGencoding(mediumcompression).

Usage AspropertyDCS1_SaveOptions.encodingDCS2_SaveOptions.encodingEPSSaveOptions.encoding

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 410: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies
Page 411: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 412: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveLogItemsType Thelocationofhistorylogdata.

Value Name

SaveLogItemsType.LOGFILE

SaveLogItemsType.LOGFILEANDMETADATA

SaveLogItemsType.METADATA

Usage AspropertyPreferences.saveLogItems

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 413: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 414: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveOptions Optionsforsavingafile.

SuperclassofBMPSaveOptions,DCS1_SaveOptionsDCS2_SaveOptions,EPSSaveOptions,GIFSaveOptionsJPEGSaveOptions,PDFSaveOptions,PICTFileSaveOptionsPICTResourceSaveOptions,PNGSaveOptions,PhotoshopSaveOptions,PixarSaveOptions,RawSaveOptionsSGIRGBSaveOptions,TargaSaveOptions,andTiffSaveOptions

Class Property Type Access Description

DONOTSAVECHANGES int readonly Donotsavechanges.(default:

PROMPTTOSAVECHANGES int readonly Asktheuserwhethertosave.(default:3

SAVECHANGES int readonly Savechanges.(default:

Usedin: voidDocument.close([saving:SaveOptions=SaveOptions.PROMPTTOSAVECHANGES

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 415: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 416: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SaveOptions Optionsforsavingafile.

Value Name Description

SaveOptions.DONOTSAVECHANGES Donotsavechanges.

SaveOptions.PROMPTTOSAVECHANGES Asktheuserwhethertosave.

SaveOptions.SAVECHANGES Savechanges.

Usage InfunctionvoidDocument.close([saving:

SaveOptions=SaveOptions.PROMPTTOSAVECHANGES

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 417: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 418: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Selection Theselectedareaofthedocumentorlayer.

QuickLinks clear,contract,copy,cut,deselect,expand,feather,fill,growresize,resizeBoundary,rotate,rotateBoundary,select,selectAllstore,stroke,translate,translateBoundary

Hierarchy Object

Selection

Properties Property Type Access Description

bounds UnitRect readonly Theboundingrectangleoftheentireselection.

parent Object readonly Theobject'scontainer.

solid bool readonly Iftrue,theboundingrectangleasolidrectangle.

typename string readonly Theclassnameoftheobject.

Methods Instancesvoidclear()Clearstheselectionanddoesnotcopyittotheclipboard.

voidcontract(by:UnitValue)Contractstheselection.Parameter Type Description

by UnitValue Theamounttocontracttheselection.

voidcopy([merge:bool])Copiestheselectiontotheclipboard.Parameter Type Description

merge bool Iftruethecopyincludesallvisiblelayers.Iffalse,copiesonlyfromthecurrentlayer.(Optional)

voidcut()

Page 419: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Cutsthecurrentselectiontotheclipboard.

voiddeselect()Deselectsthecurrentselection.

voidexpand(by:UnitValue)Expandstheselection.Parameter Type Description

by UnitValue Theamounttoexpandtheselection.

voidfeather(by:UnitValue)Featherstheedgesoftheselection.Parameter Type Description

by UnitValue Theamounttofeathertheedge.

voidfill(fillType:any[,mode:ColorBlendMode=ColorBlendMode.NORMALint=100][,preserveTransparency:bool])Fillstheselection.Parameter Type

fillType any

mode ColorBlendMode:ColorBlendMode.NORMALColorBlendMode.DISSOLVEColorBlendMode.BEHINDColorBlendMode.CLEARColorBlendMode.DARKENColorBlendMode.MULTIPLYColorBlendMode.COLORBURNColorBlendMode.LINEARBURNColorBlendMode.LIGHTENColorBlendMode.SCREENColorBlendMode.COLORDODGEColorBlendMode.LINEARDODGEColorBlendMode.OVERLAYColorBlendMode.SOFTLIGHTColorBlendMode.HARDLIGHT

Page 420: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorBlendMode.VIVIDLIGHTColorBlendMode.LINEARLIGHTColorBlendMode.PINLIGHTColorBlendMode.DIFFERENCEColorBlendMode.EXCLUSIONColorBlendMode.HUEColorBlendMode.SATURATIONColorBlendMode.COLORColorBlendMode.LUMINOSITYColorBlendMode.HARDMIXBLEND

opacity int

preserveTransparency bool

voidgrow(tolerance:int,antiAlias:bool)Growstheselectiontoincludealladjacentpixelsfallingwithinthespecifiedtolerancerange.Parameter Type Description

tolerance int(range:0-255) Thetolerancerange.Range:0to255.

antiAlias bool Iftrue,anti-aliasingisused.

voidinvert()Invertstheselection.

voidload(from:Channel[,combination:SelectionType=SelectionType.REPLACEinverting:bool=false])Loadstheselectionfromthespecifiedchannel.Parameter Type Description

from Channel Thechanneltoloadtheselectionfrom.

combination SelectionType:SelectionType.REPLACESelectionType.EXTENDSelectionType.DIMINISHSelectionType.INTERSECT

Howtocombinethechannelcontentswiththeexistingselection.(default:SelectionType.REPLACE

Page 421: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

inverting bool Iftrue,selectstheinverseofthechannelcontents.(default:false)(Optional)

voidmakeWorkPath([tolerance:number])Makesthisselectionitemtheworkpathforthisdocument.Parameter Type Description

tolerance number Thetoleranceinpixels.(Optional)

voidresize([horizontal:number=100][,vertical:number=100AnchorPosition=AnchorPosition.MIDDLECENTER])Resizestheselectedareatothespecifieddimensionsandanchorposition.Parameter Type Description

horizontal number Theamounttoscaletheselectionhorizontally(asapercentage).(default:100)(Optional)

vertical number Theamounttoscaletheselectionvertically(asapercentage).(default:

anchor AnchorPosition:AnchorPosition.TOPLEFTAnchorPosition.TOPCENTERAnchorPosition.TOPRIGHTAnchorPosition.MIDDLELEFTAnchorPosition.MIDDLECENTERAnchorPosition.MIDDLERIGHTAnchorPosition.BOTTOMLEFTAnchorPosition.BOTTOMCENTERAnchorPosition.BOTTOMRIGHT

Thepointtoscalearound.(default:AnchorPosition.MIDDLECENTER(Optional)

voidresizeBoundary([horizontal:number=100][,vertical:AnchorPosition=AnchorPosition.MIDDLECENTER])Scalestheboundaryoftheselection.Parameter Type Description

horizontal number Theamounttoscaletheobjecthorizontally(asapercentage).(default:

vertical number Theamounttoscaletheobjectvertically

Page 422: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

(asapercentage).(default:

anchor AnchorPosition:AnchorPosition.TOPLEFTAnchorPosition.TOPCENTERAnchorPosition.TOPRIGHTAnchorPosition.MIDDLELEFTAnchorPosition.MIDDLECENTERAnchorPosition.MIDDLERIGHTAnchorPosition.BOTTOMLEFTAnchorPosition.BOTTOMCENTERAnchorPosition.BOTTOMRIGHT

Thepointtoscalearound.(default:AnchorPosition.MIDDLECENTER(Optional)

voidrotate(angle:number[,anchor:AnchorPosition=AnchorPosition.MIDDLECENTERRotatestheobject.Parameter Type Description

angle number Thenumberofdegreestorotatetheobject.

anchor AnchorPosition:AnchorPosition.TOPLEFTAnchorPosition.TOPCENTERAnchorPosition.TOPRIGHTAnchorPosition.MIDDLELEFTAnchorPosition.MIDDLECENTERAnchorPosition.MIDDLERIGHTAnchorPosition.BOTTOMLEFTAnchorPosition.BOTTOMCENTERAnchorPosition.BOTTOMRIGHT

Thepointtorotateabout.(default:AnchorPosition.MIDDLECENTER(Optional)

voidrotateBoundary(angle:number[,anchor:AnchorPosition=AnchorPosition.MIDDLECENTER])Rotatestheboundaryoftheselection.Parameter Type Description

angle number Therotationangle(indegrees)

anchor AnchorPosition:AnchorPosition.TOPLEFTAnchorPosition.TOPCENTERAnchorPosition.TOPRIGHT

Thepointtorotateabout.(default:AnchorPosition.MIDDLECENTER(Optional)

Page 423: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

AnchorPosition.MIDDLELEFTAnchorPosition.MIDDLECENTERAnchorPosition.MIDDLERIGHTAnchorPosition.BOTTOMLEFTAnchorPosition.BOTTOMCENTERAnchorPosition.BOTTOMRIGHT

voidselect(region:Arrayofany[,type:SelectionType=SelectionType.REPLACEnumber=0][,antiAlias:bool=true])Selectsthespecifiedregion.Parameter Type Description

region Arrayofany Arrayofxandycoordinatesthatdescribethecornersoftheselection,intheformat[[x1,y1],[x2,y2],[x3,y3],[x4,y4]]

type SelectionType:SelectionType.REPLACESelectionType.EXTENDSelectionType.DIMINISHSelectionType.INTERSECT

Themethodforcombiningthenewselectionwiththeexistingselection.(default:SelectionType.REPLACE

feather number Thefeatheramount.(default:

antiAlias bool Iftrue,anti-aliasingisused.(default:(Optional)

voidselectAll()Selectstheentirelayer.

voidselectBorder(width:UnitValue)Selectstheselectionborderonly(inthespecifiedwidth);subsequentactionsdonotaffecttheselectedareawithintheborders.Parameter Type Description

width UnitValue Thewidthoftheborderselection.

voidsimilar(tolerance:int,antiAlias:bool)Growstheselectiontoincludepixelsthroughouttheimagefallingwithinthetolerancerange.Parameter Type Description

tolerance int Thetolerancerange.Range:0to255.

Page 424: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

antiAlias bool Iftrue,anti-aliasingisused.

voidsmooth(radius:int)Cleansupstraypixelsleftinsideoroutsideacolor-basedselection(withintheradiusspecifiedinpixels).Parameter Type Description

radius int(range:0-100) Thesampleradiusinpixels.Range:0to100.

voidstore(into:Channel[,combination:SelectionType=SelectionType.REPLACESavestheselectionasachannel.Parameter Type Description

into Channel Thechanneltosavetheselectionto.

combination SelectionType:SelectionType.REPLACESelectionType.EXTENDSelectionType.DIMINISHSelectionType.INTERSECT

Howtoaddtheselectiontotheexistingcontentsofthechannel.(default:SelectionType.REPLACE

voidstroke(strokeColor:any,width:int[,location:StrokeLocation=StrokeLocation.CENTER][,mode:ColorBlendMode=ColorBlendMode.NORMAL][,opacitybool])Strokestheselection.Parameter Type

strokeColor any

width int

location StrokeLocation:StrokeLocation.INSIDEStrokeLocation.CENTERStrokeLocation.OUTSIDE

mode ColorBlendMode:ColorBlendMode.NORMALColorBlendMode.DISSOLVE

Page 425: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorBlendMode.BEHINDColorBlendMode.CLEARColorBlendMode.DARKENColorBlendMode.MULTIPLYColorBlendMode.COLORBURNColorBlendMode.LINEARBURNColorBlendMode.LIGHTENColorBlendMode.SCREENColorBlendMode.COLORDODGEColorBlendMode.LINEARDODGEColorBlendMode.OVERLAYColorBlendMode.SOFTLIGHTColorBlendMode.HARDLIGHTColorBlendMode.VIVIDLIGHTColorBlendMode.LINEARLIGHTColorBlendMode.PINLIGHTColorBlendMode.DIFFERENCEColorBlendMode.EXCLUSIONColorBlendMode.HUEColorBlendMode.SATURATIONColorBlendMode.COLORColorBlendMode.LUMINOSITYColorBlendMode.HARDMIXBLEND

opacity int

preserveTransparency bool

voidtranslate([deltaX:UnitValue][,deltaY:UnitValue])Movestheobjectrelativetoitscurrentposition.Parameter Type Description

deltaX UnitValue Theamounttomovetheobjecthorizontally.(Optional)

deltaY UnitValue Theamounttomovetheobjectvertically.(Optional)

voidtranslateBoundary([deltaX:UnitValue][,deltaY:UnitValueMovestheboundaryofselectionrelativetoitscurrentposition.

Page 426: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type Description

deltaX UnitValue Theamounttomovetheobjecthorizontally.(Optional)

deltaY UnitValue Theamounttomovetheobjectvertically.(Optional)

Elementof Document.selection

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 427: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 428: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SelectionType Theselectionbehaviorwhenaselectionalready

exists.

Value Name Description Value

SelectionType.DIMINISH Removetheselectionfromthealreadyselectedarea.

int3

SelectionType.EXTEND Addtheselectiontoanalreadyselectedarea.

int2

SelectionType.INTERSECT Maketheselectiononlytheareawherethenewselectionintersectsthealreadyselectedarea.

int4

SelectionType.REPLACE Replacetheselectedarea.

int1

Usage InfunctionvoidPathItem.makeSelection([feather:number][,

antiAlias:bool][,operation:SelectionType])voidSelection.load(from:Channel[,combination

Page 429: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SelectionType=SelectionType.REPLACE][,inverting:bool=false])

voidSelection.select(region:Arrayofany[,type:SelectionType=SelectionType.REPLACE][,feather:number=0][,antiAlias:bool=true])

voidSelection.store(into:Channel[,combinationSelectionType=SelectionType.REPLACE])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 430: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 431: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SourceSpaceType Thecolorspaceforthesourcewhenprinting.

Value Name Description

SourceSpaceType.DOCUMENT Thedocumentcolorspace.

SourceSpaceType.PROOF Theproofcolorspace.

Usage InfunctionvoidDocument.print([postScriptEncoding

PrintEncoding=PrintEncoding.BINARYsourceSpace:SourceSpaceType=SourceSpaceType.DOCUMENT[,printSpace:string][,intent:Intent=Intent.RELATIVECOLORIMETRICblackPointCompensation:bool=true

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 432: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 433: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

StrikeThruType Thestrikethroughstyle.

Value Name Description

StrikeThruType.STRIKEBOX (Forverticaltype)Thestrikethroughisthroughtheembox.

StrikeThruType.STRIKEHEIGHT (Forverticaltype)Thestrikethroughisthroughtheheightofthetext.

StrikeThruType.STRIKEOFF Nostrikethrough.

Usage AspropertyTextItem.strikeThru

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 434: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 435: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

StrokeLocation Theplacementofpathorselectionboundary

strokes.

Value Name Description Value

StrokeLocation.CENTER Theborderisplacedinthecenterofthetheselectionorlayerboundaries.

int

StrokeLocation.INSIDE Theborderisplacedinsidetheselectionorlayerboundaries.

int

StrokeLocation.OUTSIDE Theborderisplacedoutsidetheselectionorlayerboundaries.

int

Usage InfunctionvoidSelection.stroke(strokeColor:any,width

location:StrokeLocation=StrokeLocation.CENTERmode:ColorBlendMode=ColorBlendMode.NORMAL[,opacity:int=100][,preserveTransparencybool])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 436: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 437: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TIFFEncoding TheencodingtousewhensavingtoTIFFformat.

Value Name Description Value

TIFFEncoding.JPEG JPEGcompression,whichislossyandrecommendedforcontinuous-toneimages,suchasphotographs.

int

TIFFEncoding.NONE Nocompression.

int

TIFFEncoding.TIFFLZW LZWcompression,whichislosslessandmostusefulforimageswithlargeareasofsinglecolor.

int

TIFFEncoding.TIFFZIP Zipcompression,whichislosslessandmosteffectiveforimagesthatcontainlargeareasofsinglecolor.

int

Page 438: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Usage AspropertyTiffSaveOptions.imageCompression

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 439: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 440: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TextComposer Thetextcomposer.

Value Name Description

TextComposer.ADOBEEVERYLINE Considersanetworkofbreakpointsforarangeoflinesandthusoptimizesearlierlinesintheparagraphtoeliminateespeciallyunattractivebreakslateron.Resultsinmoreevenspacingandfewerhyphens.TheAdobeEvery-linecomposerapproachescompositionbyidentifyingpossiblebreakpoints,evaluatingthem,andassigningaweighted

Page 441: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

penaltybasedontheseprinciples:Highestimportanceisgiventoevennessofletterandwordspacing;Possiblebreakpointsareevaluatedandpenalizedaccordingtohowmuchtheydeviatefromoptimalspacing;Hyphenationisavoidedwhenpossible;Breakpointsthatrequirehyphenationarepenalizedmorethanthosethatcreateunevenspacing;Goodbreakpointsarepreferred

Page 442: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

overbadbreakpoints.

TextComposer.ADOBESINGLELINE Offersatraditionalapproachtocomposingtypeonelineatatime.Usefulifyouprefertohavemanualcontroloverhowlinesbreak.Usesthefollowingprincipleswhenconsideringabreakpoint:Compressedorexpandedwordspacingispreferabletohyphenation;Hyphenationispreferabletocompressedorexpandedletterspacing;Ifspacingmustbeadjusted,compressionisbetterthanexpansion.

Page 443: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Usage AspropertyTextItem.textComposer

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 444: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 445: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TextFont Aninstalledfont.

Hierarchy Object

TextFont

Properties Property Type Access Description

family string readonly Thefontfamily.

name string readonly Thefontname.

parent Object readonly Theobject'scontainer.

postScriptName string readonly ThePostScriptnameofthefont.

style string readonly Thefontstyle.

typename string readonly Theclassnameoftheobject.

Return TextFontTextFonts.[](index:uint)TextFontTextFonts.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 446: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 447: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TextItem Thetextobjectcontainedinanartlayer.

QuickLinks convertToShape,createPath

Hierarchy Object

TextItem

Properties Property Type

alternateLigatures bool

antiAliasMethod AntiAlias:AntiAlias.NONEAntiAlias.SHARPAntiAlias.CRISPAntiAlias.STRONGAntiAlias.SMOOTH

autoKerning AutoKernType:AutoKernType.MANUALAutoKernType.METRICSAutoKernType.OPTICAL

autoLeadingAmount number

baselineShift UnitValue

Page 448: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

capitalization Case:Case.NORMALCase.ALLCAPSCase.SMALLCAPS

color SolidColor

contents string

desiredGlyphScaling number

desiredLetterScaling number

Page 449: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

desiredWordScaling number

direction Direction:Direction.HORIZONTALDirection.VERTICAL

fauxBold bool

fauxItalic bool

firstLineIndent UnitValue

Page 450: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

font string

hangingPuntuation bool

height UnitValue

horizontalScale int

hyphenLimit int

hyphenateAfterFirst int

Page 451: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

hyphenateBeforeLast int

hyphenateCapitalWords bool

hyphenateWordsLongerThan int(min:0)

Page 452: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

hyphenation bool

hyphenationZone UnitValue

justification Justification:Justification.LEFTJustification.CENTERJustification.RIGHTJustification.LEFTJUSTIFIEDJustification.CENTERJUSTIFIEDJustification.RIGHTJUSTIFIEDJustification.FULLYJUSTIFIED

kind TextType:TextType.POINTTEXTTextType.PARAGRAPHTEXT

language Language:Language.ENGLISHUSALanguage.ENGLISHUKLanguage.FRENCHLanguage.CANADIANFRENCHLanguage.FINNISHLanguage.GERMANLanguage.OLDGERMANLanguage.SWISSGERMANLanguage.ITALIANLanguage.NORWEGIAN

Page 453: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Language.NYNORSKNORWEGIANLanguage.PORTUGUESELanguage.BRAZILLIANPORTUGUESELanguage.SPANISHLanguage.SWEDISHLanguage.DUTCHLanguage.DANISH

leading UnitValue

leftIndent UnitValue

ligatures bool

maximumGlyphScaling number

Page 454: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

maximumLetterScaling number

maximumWordScaling number

minimumGlyphScaling number

Page 455: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

minimumLetterScaling number

minimumWordScaling number

Page 456: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

noBreak bool

oldStyle bool

parent Object

Page 457: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

position UnitPoint

rightIndent UnitValue

size UnitValue

spaceAfter UnitValue

Page 458: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

spaceBefore UnitValue

strikeThru StrikeThruType:StrikeThruType.STRIKEOFFStrikeThruType.STRIKEHEIGHTStrikeThruType.STRIKEBOX

textComposer TextComposer:TextComposer.ADOBESINGLELINETextComposer.ADOBEEVERYLINE

tracking number

typename string

underline UnderlineType:UnderlineType.UNDERLINEOFFUnderlineType.UNDERLINERIGHTUnderlineType.UNDERLINELEFT

useAutoLeading bool

Page 459: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

verticalScale int

warpBend number

warpDirection Direction:Direction.HORIZONTALDirection.VERTICAL

warpHorizontalDistortion number

warpStyle WarpStyle:WarpStyle.NONEWarpStyle.ARCWarpStyle.ARCLOWERWarpStyle.ARCUPPERWarpStyle.ARCHWarpStyle.BULGEWarpStyle.SHELLLOWERWarpStyle.SHELLUPPERWarpStyle.FLAGWarpStyle.WAVE

Page 460: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

WarpStyle.FISHWarpStyle.RISEWarpStyle.FISHEYEWarpStyle.INFLATEWarpStyle.SQUEEZEWarpStyle.TWIST

warpVerticalDistortion number

width UnitValue

Methods InstancesvoidconvertToShape()Convertsthetextobjectanditscontaininglayertoafilllayerwiththetextchangedtoaclippingpath.

voidcreatePath()Createsaclippingpathfromtheoutlinesoftheactualtextitems(suchaslettersorwords).

Elementof ArtLayer.textItem

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 461: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 462: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TextType Thetypeoftext.

Value Name Description Value

TextType.PARAGRAPHTEXT Textthatwrapswithinaboundingbox.

int2

TextType.POINTTEXT Textthatdoesnotwrap.

int1

Usage AspropertyTextItem.kind

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 463: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 464: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TransitionType PDFpresentationtransitiontypes.

Value Name Description

TransitionType.BLINDSHORIZONTAL ImagestransitioninhorizontalstripeslikeVenetianblinds.

TransitionType.BLINDSVERTICAL Imagestransitioninverticalstripes.

TransitionType.BOXIN Imagestransitionusingashrinkingboxshape.

TransitionType.BOXOUT Imagestransitionusinganexpandingboxshape.

TransitionType.DISSOLVE Oneimagedissolvesintothenext.

TransitionType.GLITTERDOWN Imagesdissolvetoptobottom.

TransitionType.GLITTERRIGHT Imagesdissolveleft

Page 465: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

toright.

TransitionType.GLITTERRIGHTDOWN Imagesdissolvetop-lefttobottom-right.

TransitionType.NONE Imageschangewithnovisibletransition.

TransitionType.RANDOM Imagestransitionusingrandomeffects.

TransitionType.SPLITHORIZONTALIN Thenewimagesrollinfromthetopandbottomofthescreen.

TransitionType.SPLITHORIZONTALOUT Thenewimagespreadsfromthemiddleofthescreentothetopandbottomofthescreen.

TransitionType.SPLITVERTICALIN Thenewimagerollsinfromtheleftand

Page 466: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

rightedgesofthescreen.

TransitionType.SPLITVERTICALOUT Thenewimagerollsoutfromthemiddleofthescreentotheleftandrightedgesofthescreen.

TransitionType.WIPEDOWN Thenewimagerollsinfromthetopofthescreen.

TransitionType.WIPELEFT Thenewimagerollsinfromtherightsideofthescreen.

TransitionType.WIPERIGHT Thenewimagerollsinfromtheleftsideofthescreen.

TransitionType.WIPEUP Thenewimagerollsinfromthebottomofthescreen.

Usage AspropertyPresentationOptions.transition

Page 467: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 468: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 469: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TrimType Thetypeofpixelstotrimaroundanimage.

Value Name Description Value

TrimType.BOTTOMRIGHT Removesfromtheimageanareathecolorofthelowerrightpixel.

int9

TrimType.TOPLEFT Removesfromtheimageanareathecoloroftheupperleftpixel.

int1

TrimType.TRANSPARENT Trimsawaytransparencyattheedgesoftheimage,leavingthesmallestimagecontainingnontransparentpixels.

int0

Usage InfunctionvoidDocument.trim([type:

TrimType=TrimType.TOPLEFT][,top:bool=true][,left:bool=true][,bottom:bool=true][,right:bool=true])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 470: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 471: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TypeUnits Themeasurementunitfortype.

Value Name Description Value

TypeUnits.MM Millimeters. int4

TypeUnits.PIXELS Pixels. int1

TypeUnits.POINTS Points. int5

Usage AspropertyPreferences.typeUnits

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 472: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 473: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

UnderlineType Thetypeofunderline.

Value Name Description

UnderlineType.UNDERLINELEFT (Forverticaltype)Theunderlineistotheleftofthetext.

UnderlineType.UNDERLINEOFF Nounderline.

UnderlineType.UNDERLINERIGHT (Forverticaltype)Theunderlineistotherightofthetext.

Usage AspropertyTextItem.underline

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 474: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 475: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Units Themeasurementunitforrulerincrements.

Value Name Description Value

Units.CM Centimeters. int3

Units.INCHES Inches. int2

Units.MM Millimeters. int4

Units.PERCENT Percent. int7

Units.PICAS Picas. int6

Units.PIXELS Pixels. int1

Units.POINTS Points. int5

Usage AspropertyPreferences.rulerUnits

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 476: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 477: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Urgency Theeditorialurgencystatusoftheartwork.

Value Name Description Value

Urgency.FOUR Level4(fourthhighest) int4

Urgency.HIGH Highestlevelofurgency.

int8

Urgency.LOW Low. int1

Urgency.NONE Nourgency. int0

Urgency.NORMAL Mediumurgency. int5

Urgency.SEVEN Level7(secondlowest)

int7

Urgency.SIX Level6(thirdlowest) int6

Urgency.THREE Level3(thirdhighest) int3

Urgency.TWO Level2(secondhighest)

int2

Usage AspropertyDocumentInfo.urgency

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 478: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 479: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

WarpStyle Thewarpstylefortext.

Value Name Description Value

WarpStyle.ARC Thetypeiswarpedintheshapeofanarc.

int2

WarpStyle.ARCH Textiswarpedintheformofanarch.

int5

WarpStyle.ARCLOWER Warpisheavieronthelowerorleftedgeofthetextthanontheupperorrightedge.

int3

WarpStyle.ARCUPPER Warpisheavierontheupperorrightedgeofthetextthanonthelowerorleftedge.

int4

WarpStyle.BULGE Textiswarpedoutwardonboththeupperandlowerorrightandleftedges.

int6

WarpStyle.FISH Textiswarpedintheshapeof

int11

Page 480: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

afish.

WarpStyle.FISHEYE Textbulgesinthemiddleandissqueezedontheedgesasifviewedthroughafisheyelens.

int13

WarpStyle.FLAG Textiswarpedintheshapeofawavingflag.

int9

WarpStyle.INFLATE Textisinflated.

int14

WarpStyle.NONE Nowarp. int1

WarpStyle.RISE Textiswarpedinanundulating,risingpattern.

int12

WarpStyle.SHELLLOWER Textiswarpeddownwardortotherightintheshapeofafan-likeseashell.

int7

WarpStyle.SHELLUPPER Textiswarpedupwardortotheleftintheshapeofafan-likeseashell.

int8

WarpStyle.SQUEEZE Textissqueezed.

int15

WarpStyle.TWIST Textistwisted.

int16

Page 481: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

WarpStyle.WAVE Textiswarpedintheshapeofawave.

int10

Usage AspropertyTextItem.warpStyle

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 482: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 483: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

WhiteBalanceType Thelightingconditions(affectscolorbalance).

Value Name

WhiteBalanceType.ASSHOT

WhiteBalanceType.AUTO

WhiteBalanceType.CLOUDY

WhiteBalanceType.CUSTOM

WhiteBalanceType.DAYLIGHT

WhiteBalanceType.FLASH

WhiteBalanceType.FLUORESCENT

Page 484: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

WhiteBalanceType.SHADE

WhiteBalanceType.TUNGSTEN

Usage AspropertyCameraRAWOpenOptions.whiteBalance

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 485: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 486: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

XMPMetadata Camerarawimagefilesettingsstoredinan

XMPfileinthesamefolderastherawfilewiththesamebasenameandanXMPextension.

Hierarchy Object

XMPMetadata

Properties Property Type Access Description

parent Object readonly Theobject'scontainer.

rawData string r/w TherawXMLformoffileinformation.

typename string readonly Theclassnameoftheobject.

Elementof Document.xmpMetadataLayer.xmpMetadata

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 487: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 488: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CameraRAWOpenOptions OptionsforopeningacameraRAWdocument.BaseClass:

Class Property

bitsPerChannel

blueHue

blueSaturation

brightness

chromaticAberrationBY

chromaticAberrationRC

colorNoiseReduction

colorSpace

contrast

exposure

greenHue

Page 489: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

greenSaturation

luminanceSmoothing

redHue

redSaturation

resolution

saturation

settings

shadowTint

shadows

sharpness

size

temperature

Page 490: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

tint

vignettingAmount

vignettingMidpoint

whiteBalance

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 491: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 492: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DICOMOpenOptions OptionsforopeningaDICOMdocument.

BaseClass:OpenOptions

Class Property Type Access

anonymize bool r/w

columns int r/w

reverse bool r/w

rows int r/w

showOverlays bool r/w

windowLevel int r/w

windowWidth int r/w

Page 493: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 494: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 495: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OpenOptions Optionsthatcanbespecifiedwhenopeninga

document.

SuperclassofCameraRAWOpenOptions,DICOMOpenOptions,EPSOpenOptions,PDFOpenOptions,PhotoCDOpenOptions,andRawFormatOpenOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 496: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 497: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PhotoCDOpenOptions DeprecatedinAdobePhotoshopCS3.BaseClass:

Class Property Type

colorProfileName string

colorSpace PhotoCDColorSpacePhotoCDColorSpace.RGB8PhotoCDColorSpace.RGB16PhotoCDColorSpace.LAB8PhotoCDColorSpace.LAB16

orientation OrientationOrientation.LANDSCAPEOrientation.PORTRAIT

pixelSize PhotoCDSizePhotoCDSize.MINIMUMPhotoCDSize.SMALLPhotoCDSize.MEDIUMPhotoCDSize.LARGEPhotoCDSize.EXTRALARGEPhotoCDSize.MAXIMUM

resolution number

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 498: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 499: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PhotoCDSize Thepixeldimensionsoftheimage.

Value Name Description Value

PhotoCDSize.EXTRALARGE 1024x1536image.

int

PhotoCDSize.LARGE 512x768image.

int

PhotoCDSize.MAXIMUM 2048x3072image.

int

PhotoCDSize.MEDIUM 256x384image.

int

PhotoCDSize.MINIMUM 64x96image.

int

PhotoCDSize.SMALL 128x192image.

int

Usage AspropertyPhotoCDOpenOptions.pixelSize

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 500: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 501: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

RawFormatOpenOptions OptionsthatcanbespecifiedwhenopeningadocumentinRAW

format.BaseClass:OpenOptions

Class Property Type

bitsPerChannel int

byteOrder ByteOrderByteOrder.IBMByteOrder.MACOS

channelNumber int

headerSize int

Page 502: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

height int

interleaveChannels bool

retainHeader bool

width int

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 503: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 504: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BMPDepthType Thenumberofbitsperchannel(alsocalledpixeldepthor

colordepth).Thenumberselectedindicatestheexponentof2.Forexample,apixelwithabit-depthofEIGHThas2-to-the-8th,or256,possiblecolorvalues.

Value Name Description

BMPDepthType.BMP_A1R5G5B5 A1R5G5B5advancedbitdepthspecification.

BMPDepthType.BMP_A4R4G4B4 A4R4G4B4advancedbitdepthspecification.

BMPDepthType.BMP_A8R8G8B8 A8R8G8B8advancedbitdepthspecification(sameasnormal32bitmode)

BMPDepthType.BMP_R5G6B5 R5G6B5advancedbitdepthspecification.

BMPDepthType.BMP_R8G8B8 R8G8B8advancedbitdepthspecification(sameasnormal24bitmode)

Page 505: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BMPDepthType.BMP_X1R5G5B5 X1R5G5B5advancedbitdepthspecification(sameasnormal16bitmode)

BMPDepthType.BMP_X4R4G4B4 X4R4G4B4advancedbitdepthspecification.

BMPDepthType.BMP_X8R8G8B8 X8R8G8B8advancedbitdepthspecification.

BMPDepthType.EIGHT 8bitsdepth.

BMPDepthType.FOUR 4bitsdepth.

BMPDepthType.ONE 1bitdepth.

BMPDepthType.SIXTEEN 16bitsdepth.

BMPDepthType.THIRTYTWO 32bitsdepth.

BMPDepthType.TWENTYFOUR 24bitsdepth.

Usage AspropertyBMPSaveOptions.depth

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 506: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 507: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

BMPSaveOptions OptionsforsavingadocumentinBMPformat.BaseClass:

Class Property Type

alphaChannels bool

depth BMPDepthType:BMPDepthType.ONEBMPDepthType.FOURBMPDepthType.EIGHTBMPDepthType.SIXTEENBMPDepthType.TWENTYFOURBMPDepthType.THIRTYTWOBMPDepthType.BMP_X1R5G5B5BMPDepthType.BMP_A1R5G5B5BMPDepthType.BMP_R5G6B5BMPDepthType.BMP_X4R4G4B4BMPDepthType.BMP_A4R4G4B4BMPDepthType.BMP_R8G8B8BMPDepthType.BMP_X8R8G8B8BMPDepthType.BMP_A8R8G8B8

flipRowOrder bool

osType OperatingSystem:OperatingSystem.OS2OperatingSystem.WINDOWS

rleCompression bool

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 508: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 509: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DCS1_SaveOptions OptionsforsavingadocumentinPhotoshopDCS1.0format.BaseClass:

Class Property Type

DCS DCSType:DCSType.NOCOMPOSITEDCSType.GRAYSCALECOMPOSITEDCSType.COLORCOMPOSITE

embedColorProfile bool

encoding SaveEncoding:SaveEncoding.ASCIISaveEncoding.BINARYSaveEncoding.JPEGLOWSaveEncoding.JPEGMEDIUMSaveEncoding.JPEGHIGHSaveEncoding.JPEGMAXIMUM

halftoneScreen bool

interpolation bool

preview Preview:Preview.NONEPreview.MONOCHROMETIFFPreview.EIGHTBITTIFFPreview.MACOSMONOCHROMEPreview.MACOSEIGHTBITPreview.MACOSJPEG

transferFunction bool

Page 510: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

vectorData bool

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 511: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 512: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DCS2_SaveOptions OptionsforsavingadocumentinPhotoshopDCS2.0format.BaseClass:

Class Property Type

DCS DCSType:DCSType.NOCOMPOSITEDCSType.GRAYSCALECOMPOSITEDCSType.COLORCOMPOSITE

embedColorProfile bool

encoding SaveEncoding:SaveEncoding.ASCIISaveEncoding.BINARYSaveEncoding.JPEGLOWSaveEncoding.JPEGMEDIUMSaveEncoding.JPEGHIGHSaveEncoding.JPEGMAXIMUM

halftoneScreen bool

interpolation bool

multiFileDCS bool

preview Preview:Preview.NONEPreview.MONOCHROMETIFFPreview.EIGHTBITTIFFPreview.MACOSMONOCHROMEPreview.MACOSEIGHTBITPreview.MACOSJPEG

spotColors bool

Page 513: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

transferFunction bool

vectorData bool

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 514: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 515: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

EPSSaveOptions OptionsforsavingadocumentinEPSformat.BaseClass:

Class Property Type

embedColorProfile bool

encoding SaveEncoding:SaveEncoding.ASCIISaveEncoding.BINARYSaveEncoding.JPEGLOWSaveEncoding.JPEGMEDIUMSaveEncoding.JPEGHIGHSaveEncoding.JPEGMAXIMUM

halftoneScreen bool

interpolation bool

preview Preview:Preview.NONEPreview.MONOCHROMETIFFPreview.EIGHTBITTIFFPreview.MACOSMONOCHROMEPreview.MACOSEIGHTBITPreview.MACOSJPEG

psColorManagement bool

transferFunction bool

transparentWhites bool

Page 516: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

vectorData bool

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 517: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 518: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GIFSaveOptions OptionsforsavingadocumentinGIFformat.BaseClass:

Class Property Type

colors int

dither Dither:Dither.NONEDither.DIFFUSIONDither.PATTERNDither.NOISE

ditherAmount int(range:1-100)

forced ForcedColors:ForcedColors.NONEForcedColors.BLACKWHITEForcedColors.PRIMARIESForcedColors.WEB

interlaced bool

matte MatteType:MatteType.NONEMatteType.FOREGROUNDMatteType.BACKGROUNDMatteType.WHITEMatteType.BLACKMatteType.SEMIGRAYMatteType.NETSCAPE

palette Palette:Palette.EXACT

Page 519: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Palette.MACOSPALETTEPalette.WINDOWSPALETTEPalette.WEBPALETTEPalette.UNIFORMPalette.LOCALPERCEPTUALPalette.LOCALSELECTIVEPalette.LOCALADAPTIVEPalette.MASTERPERCEPTUALPalette.MASTERSELECTIVEPalette.MASTERADAPTIVEPalette.PREVIOUSPALETTE

preserveExactColors bool

transparency bool

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 520: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 521: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

JPEGSaveOptions OptionsforsavingadocumentinJPEGformat.BaseClass:

Class Property Type

embedColorProfile bool

formatOptions FormatOptions:FormatOptions.STANDARDBASELINEFormatOptions.OPTIMIZEDBASELINEFormatOptions.PROGRESSIVE

matte MatteType:MatteType.NONEMatteType.FOREGROUNDMatteType.BACKGROUNDMatteType.WHITEMatteType.BLACKMatteType.SEMIGRAYMatteType.NETSCAPE

quality int(range:0-12)

scans int(range:3-5)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 522: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 523: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFSaveOptions OptionsforsavingadocumentinPDFformat.BaseClass:

Class Property Type

PDFCompatibility PDFCompatibilityPDFCompatibility.PDF13PDFCompatibility.PDF14PDFCompatibility.PDF15PDFCompatibility.PDF16PDFCompatibility.PDF17

PDFStandard PDFStandard:PDFStandard.NONEPDFStandard.PDFX1A2001PDFStandard.PDFX1A2003PDFStandard.PDFX32002PDFStandard.PDFX32003PDFStandard.PDFX42008

alphaChannels bool

annotations bool

colorConversion bool

convertToEightBit bool

Page 524: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

description string

destinationProfile string

downSample PDFResample:PDFResample.NONEPDFResample.PDFAVERAGEPDFResample.PDFSUBSAMPLEPDFResample.PDFBICUBIC

downSampleSize number

downSampleSizeLimit number

Page 525: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

downgradeColorProfile bool

embedColorProfile bool

embedFonts bool

embedThumbnail bool

encoding PDFEncodingTypePDFEncodingType.NONEPDFEncodingType.PDFZIPPDFEncodingType.JPEGPDFEncodingType.PDFZIP4BITPDFEncodingType.JPEGHIGHPDFEncodingType.JPEGMEDHIGHPDFEncodingType.JPEGMEDPDFEncodingType.JPEGMEDLOWPDFEncodingType.JPEGLOWPDFEncodingType.JPEG2000HIGHPDFEncodingType.JPEG2000MEDHIGHPDFEncodingType.JPEG2000MEDPDFEncodingType.JPEG2000MEDLOWPDFEncodingType.JPEG2000LOWPDFEncodingType.JPEG2000LOSSLESS

Page 526: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

interpolation bool

jpegQuality int(range:0-12)

layers bool

optimizeForWeb bool

outputCondition string

outputConditionID string

preserveEditing bool

Page 527: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

presetFile string

profileInclusionPolicy bool

registryName string

spotColors bool

tileSize int

transparency bool

useOutlines bool

Page 528: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

vectorData bool

view bool

Elementof PresentationOptions.PDFFileOptions

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 529: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 530: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PICTBitsPerPixels Thenumberofbitsperpixeltousewhencompressinga

PICTfile.

Value Name Description

PICTBitsPerPixels.EIGHT 8bitsperpixel.

PICTBitsPerPixels.FOUR 4bitsperpixel.

PICTBitsPerPixels.SIXTEEN 16bitsperpixel.

PICTBitsPerPixels.THIRTYTWO 32bitsperpixel.

PICTBitsPerPixels.TWO 2bitsperpixel.

Usage AspropertyPICTFileSaveOptions.resolutionPICTResourceSaveOptions.resolution

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 531: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 532: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PICTFileSaveOptions OptionsforsavingadocumentinPICTformat.BaseClass:

Class Property Type

alphaChannels bool

compression PICTCompressionPICTCompression.NONEPICTCompression.JPEGLOWPICTPICTCompression.JPEGMEDIUMPICTPICTCompression.JPEGHIGHPICTPICTCompression.JPEGMAXIMUMPICT

embedColorProfile bool

resolution PICTBitsPerPixelsPICTBitsPerPixels.TWOPICTBitsPerPixels.FOURPICTBitsPerPixels.EIGHTPICTBitsPerPixels.SIXTEENPICTBitsPerPixels.THIRTYTWO

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 533: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 534: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PICTResourceSaveOptions OptionsforsavingadocumentasaPICTresourcefile.BaseClass:

Class Property

alphaChannels

compression

embedColorProfile

name

resolution

resourceID

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 535: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 536: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PNGSaveOptions OptionsforsavingadocumentinPNG

format.BaseClass:SaveOptions

Class Property Type Access Description

interlaced bool r/w Iftrue,rowsareinterlaced.(default:false)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 537: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 538: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PhotoshopSaveOptions OptionsforsavingaPhotoshopdocument.Base

Class:SaveOptions

Class Property Type Access

alphaChannels bool r/w

annotations bool r/w

embedColorProfile bool r/w

layers bool r/w

spotColors bool r/w

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 539: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 540: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PixarSaveOptions OptionsforsavingadocumentinPixar

format.BaseClass:SaveOptions

Class Property Type Access Description

alphaChannels bool r/w Iftrue,thealphachannelsaresaved.

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 541: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 542: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

RawSaveOptions OptionsforsavingadocumentinRAW

format.BaseClass:SaveOptions

Class Property Type Access Description

alphaChannels bool r/w Iftrue,thealphachannelsaresaved.

spotColors bool r/w Iftrue,spotcolorsaresaved.

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 543: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 544: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SGIRGBSaveOptions OptionsforsavingadocumentinSGIRGB

format.BaseClass:SaveOptions

Class Property Type Access

alphaChannels bool r/w

spotColors bool r/w

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 545: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 546: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TargaBitsPerPixels TheresolutiontousewhensavinganimageinTarga

format.

Value Name

TargaBitsPerPixels.SIXTEEN

TargaBitsPerPixels.THIRTYTWO

TargaBitsPerPixels.TWENTYFOUR

Usage AspropertyTargaSaveOptions.resolution

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 547: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 548: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TargaSaveOptions OptionsforsavingadocumentinTGA(Targa)format.BaseClass:

Class Property Type

alphaChannels bool

resolution TargaBitsPerPixels:TargaBitsPerPixels.SIXTEENTargaBitsPerPixels.TWENTYFOURTargaBitsPerPixels.THIRTYTWO

rleCompression bool

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 549: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 550: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TiffSaveOptions OptionsforsavingadocumentinTIFFformat.BaseClass:

Class Property Type

alphaChannels bool

annotations bool

byteOrder ByteOrder:ByteOrder.IBMByteOrder.MACOS

embedColorProfile bool

imageCompression TIFFEncoding:TIFFEncoding.NONETIFFEncoding.TIFFLZWTIFFEncoding.JPEGTIFFEncoding.TIFFZIP

interleaveChannels bool

jpegQuality int(range:0-12)

Page 551: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

layerCompression LayerCompression:LayerCompression.RLELayerCompression.ZIP

layers bool

saveImagePyramid bool

spotColors bool

transparency bool

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 552: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 553: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ExportOptions Optionsforexportinganobject.

SuperclassofExportOptionsIllustrator,ExportOptionsSaveForWeb

Usedin: voidDocument.exportDocument(exportIn:FileexportAs:ExportType=ExportType.ILLUSTRATORPATHS[,options:ExportOptions])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 554: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 555: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ExportOptionsIllustrator OptionsforexportingIllustratorpaths.BaseClass:

Class Property Type

path IllustratorPathTypeIllustratorPathType.DOCUMENTBOUNDSIllustratorPathType.ALLPATHSIllustratorPathType.NAMEDPATH

pathName string

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 556: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 557: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ExportOptionsSaveForWeb OptionsforexportingSaveForWebfiles.BaseClass:

Class Property

PNG8

blur

colorReduction

colors

dither

ditherAmount

format

Page 558: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

includeProfile

interlaced

lossy

matteColor

optimized

quality

transparency

Page 559: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

transparencyAmount

transparencyDither

webSnap

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 560: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 561: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CreateFields Themethodforreplacingeliminatedfields.

Value Name Description Value

CreateFields.DUPLICATION Duplicatesexistingpixels.

int

CreateFields.INTERPOLATION AssignscolorvaluestoanynewpixelsthatPhotoshopcreatesbasedonthecolorvaluesofexistingpixelsintheimage.

int

Usage InfunctionvoidArtLayer.applyDeInterlace(eliminateFields:

EliminateFields,createFields:CreateFields)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 562: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 563: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DisplacementMapType Describeshowthedisplacementmapfitstheimageiftheimage

isnotthesamesizeasthemap.

Value Name

DisplacementMapType.STRETCHTOFIT

DisplacementMapType.TILE

Usage InfunctionvoidArtLayer.applyDisplace(

int,displacementType:DisplacementMapTypeundefinedAreas:UndefinedAreasFile)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 564: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 565: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

EliminateFields Thetypeoffieldstoeliminate.

Value Name Description

EliminateFields.EVENFIELDS Eliminateeveninterlacedlinesinavideoimage.

EliminateFields.ODDFIELDS Eliminateoddinterlacedlinesinavideoimage.

Usage InfunctionvoidArtLayer.applyDeInterlace(eliminateFields

EliminateFields,createFields:CreateFields

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 566: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 567: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LensType Thetypeoflens.

Value Name Description Value

LensType.MOVIEPRIME MoviePrime. int5

LensType.PRIME105 105mmPrime. int3

LensType.PRIME35 35mmPrime. int2

LensType.ZOOMLENS 50-300mmZoom.

int1

Usage InfunctionvoidArtLayer.applyLensFlare(brightness:int,

flareCenter:UnitPoint,lensType:LensType)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 568: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 569: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

NoiseDistribution ThedistributionmethodtousewhenapplyinganAdd

Noisefilter.

Value Name Description

NoiseDistribution.GAUSSIAN Distributescolorvaluesofnoisealongabell-shapedcurve,creatingaspeckledeffect.

NoiseDistribution.UNIFORM Distributescolorvaluesofnoiseusingrandomnumbersbetween0andplusorminusthespecifiedvalue,creatingasubtleeffect.

Usage InfunctionvoidArtLayer.applyAddNoise(amount:number

distribution:NoiseDistribution,monochromaticbool)

voidArtLayer.applyLensBlur([source:DepthMapSource=DepthMapSource.NONEfocalDistance:int=0][,invertDepthMap

Page 570: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

bool=false][,shape:Geometry=Geometry.HEXAGON][,int=15][,bladeCurvature:int=0][,rotation[,brightness:int=0][,threshold:int=int=0][,distribution:NoiseDistribution=NoiseDistribution.UNIFORM[,monochromatic:bool=false])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 571: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 572: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

OffsetUndefinedAreas Themethodtousetofilltheemptyspaceleftbyoffsettingaanimageor

selection.

Value Name

OffsetUndefinedAreas.REPEATEDGEPIXELS

OffsetUndefinedAreas.SETTOBACKGROUND

OffsetUndefinedAreas.WRAPAROUND

Usage Infunction

Page 573: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidArtLayer.applyOffset(horizontalundefinedAreas:OffsetUndefinedAreas

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 574: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 575: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PolarConversionType Themethodofpolardistortiontouse.

Value Name

PolarConversionType.POLARTORECTANGULAR

PolarConversionType.RECTANGULARTOPOLAR

Usage InfunctionvoidArtLayer.applyPolarCoordinates

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 576: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 577: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

RadialBlurMethod Theblurmethodtouse.

Value Name Description

RadialBlurMethod.SPIN Blursalongconcentriccircularlinesatthespecifieddegreeofrotation.

RadialBlurMethod.ZOOM Blursalongradiallines,asifzoomingintooroutoftheimage.

Usage InfunctionvoidArtLayer.applyRadialBlur(amount

blurMethod:RadialBlurMethodblurQuality:RadialBlurQuality)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 578: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 579: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

RadialBlurQuality Theradialblurquality.

Value Name Description

RadialBlurQuality.BEST Producesbestresults.

RadialBlurQuality.DRAFT Producesfastbutgrainyresults.

RadialBlurQuality.GOOD Producesgoodresults.

Usage InfunctionvoidArtLayer.applyRadialBlur(amount

blurMethod:RadialBlurMethod,blurQualityRadialBlurQuality)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 580: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 581: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

RippleSize Thesizeofundulations.

Value Name Description Value

RippleSize.LARGE Large. int3

RippleSize.MEDIUM Medium. int2

RippleSize.SMALL Small. int1

Usage InfunctionvoidArtLayer.applyRipple(amount:int,size:

RippleSize)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 582: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 583: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SmartBlurMode Themethodtouseforsmartblurring.

Value Name Description

SmartBlurMode.EDGEONLY Blurisappliedonlytoedgesofcolortransitions.Wheresignificantcontrastoccurs,appliesblack-and-whiteedges.

SmartBlurMode.NORMAL Blurisappliedtoentireimage.

SmartBlurMode.OVERLAYEDGE Blurisappliedonlytoedgesofcolortransitions.Wheresignificantcontrastoccurs,applieswhiteedges.

Usage InfunctionvoidArtLayer.applySmartBlur(radius:number

Page 584: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

number,blurQuality:SmartBlurQualitySmartBlurMode)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 585: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 586: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SmartBlurQuality Thesmartblurquality.

Value Name Description

SmartBlurQuality.HIGH Highquality.

SmartBlurQuality.LOW Lowquality.

SmartBlurQuality.MEDIUM Mediumquality.

Usage InfunctionvoidArtLayer.applySmartBlur(radius:number

threshold:number,blurQuality:SmartBlurQuality,mode:SmartBlurMode

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 587: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 588: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SpherizeMode Thecurve(orstretchshape)touseforthedistortion.

Value Name Description Value

SpherizeMode.HORIZONTAL Distortstheimageasifitiswrappedaroundahorizontalcylinder.

int

SpherizeMode.NORMAL Distortstheimageasifitiswrappedaroundasphere.

int

SpherizeMode.VERTICAL Distortstheimageasifitiswrappedaroundaverticalcylinder.

int

Usage InfunctionvoidArtLayer.applySpherize(amount:int,mode

SpherizeMode)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 589: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 590: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TextureType Thetypeoftextureorglasssurfaceimagetoload

foratexturizerorglassfilter.

Value Name Description Value

TextureType.BLOCKS Theimageappearsasifviewedthroughglassblocks.

int1

TextureType.CANVAS Theimageappearsasifpaintedoncanvas.

int2

TextureType.FILE Texturefromanexistingdocument.

int5

TextureType.FROSTED Theimageappearsasiffrosted.

int3

TextureType.TINYLENS Theimageappearsasifviewedthroughanarrayoftinylenses.

int4

Usage InfunctionvoidArtLayer.applyGlassEffect(distortion:int,

smoothness:int,scaling:int[,invert:bool=false][,texture:TextureType][,textureFile:File])

Page 591: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 592: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 593: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

UndefinedAreas Themethodtousetotreatundistortedareasorareasleftblank

inanimagetowhichafilterintheDistortcategoryhasbeenapplied.

Value Name Description

UndefinedAreas.REPEATEDGEPIXELS Extendsthecolorsofpixelsalongtheedgeoftheimageinthedirectionspecified.Bandingmayresultiftheedgepixelsaredifferentcolors.

UndefinedAreas.WRAPAROUND Fillstheundefinedspacewithcontentfromtheoppositeedgeoftheimage.

Usage InfunctionvoidArtLayer.applyDisplace(horizontalScale

int,displacementType:DisplacementMapTypeundefinedAreas:UndefinedAreas,displacementMapFileFile)

voidArtLayer.applyShear(curve:Arrayofany

Page 594: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

UndefinedAreas)voidArtLayer.applyWave(generatorNumber

minimumWavelength:int,maximumWavelengthminimumAmplitude:int,maximumAmplitudehorizontalScale:int,verticalScale:int,waveTypeWaveType,undefinedAreas:UndefinedAreasrandomSeed:int)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 595: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 596: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

WaveType Thetypeofwave.

Value Name Description Value

WaveType.SINE Rolling. int1

WaveType.SQUARE Square. int3

WaveType.TRIANGULAR Triangular. int2

Usage InfunctionvoidArtLayer.applyWave(generatorNumber:int,

minimumWavelength:int,maximumWavelength:int,minimumAmplitude:int,maximumAmplitude:int,horizontalScale:int,verticalScale:int,waveType:WaveType,undefinedAreas:UndefinedAreas,randomSeed:int)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 597: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 598: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ZigZagType Themethodofzigzagging.

Value Name Description Value

ZigZagType.AROUNDCENTER Pixelsarerotatedaroundthecenteroftheselection.

int

ZigZagType.OUTFROMCENTER Pixelsaredisplacedtowardorawayfromthecenteroftheselection.

int

ZigZagType.PONDRIPPLES Pixelsaredisplacedtotheupperleftorlowerright.

int

Usage InfunctionvoidArtLayer.applyZigZag(amount:int,ridges:int,

style:ZigZagType)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 599: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 600: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CMYKColor ACMYKcolorspecification.BaseClass:Color

Properties Property Type Access Description

black number r/w Theblackcolorvalue.Range:0.0to100.0.

cyan number r/w Thecyancolorvalue.Range:0.0to100.0.

magenta number r/w Themagentacolorvalue.Range:0.0to100.0.

yellow number r/w Theyellowcolorvalue.Range:0.0to100.0.

Class Property Type Access Description

black number r/w Theblackcolorvalue.Range:0.0to100.0.

cyan number r/w Thecyancolorvalue.Range:0.0to100.0.

magenta number r/w Themagentacolorvalue.Range:0.0to100.0.

yellow number r/w Theyellowcolorvalue.Range:0.0to100.0.

Page 601: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Elementof SolidColor.cmykSolidColor.cmyk

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 602: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 603: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Color Acolorvalue.

SuperclassofCMYKColor,GrayColor,HSBColor,LabColor,NoColor,andRGBColor

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 604: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 605: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

GrayColor Optionsfordefiningagraycolor.BaseClass:Color

Properties Property Type Access Description

gray number(range:0-100)

r/w Thegrayvalue.Range:0.0to100.0.(default:0)

Class Property Type Access Description

gray number(range:0-100)

r/w Thegrayvalue.Range:0.0to100.0.(default:0)

Elementof SolidColor.graySolidColor.gray

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 606: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 607: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

HSBColor AnHSBcolorspecification.BaseClass:Color

Properties Property Type Access Description

brightness number r/w Thebrightnessvalue.Range:0.0to100.0.

hue number r/w Thehuevalue.Range:0.0to360.0.

saturation number r/w Thesaturationvalue.Range:0.0to100.0.

Class Property Type Access Description

brightness number r/w Thebrightnessvalue.Range:0.0to100.0.

hue number r/w Thehuevalue.Range:0.0to360.0.

saturation number r/w Thesaturationvalue.Range:0.0to100.0.

Elementof SolidColor.hsbSolidColor.hsb

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 608: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 609: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LabColor ALabcolorspecification.BaseClass:Color

Properties Property Type Access Description

A number r/w Thea-value.Range:-128.0and127.0.

B number r/w Theb-value.Range:-128.0and127.0.

L number r/w TheL-value.Range:0.0to100.0.

Class Property Type Access Description

A number r/w Thea-value.Range:-128.0and127.0.

B number r/w Theb-value.Range:-128.0and127.0.

L number r/w TheL-value.Range:0.0to100.0.

Elementof SolidColor.labSolidColor.lab

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 610: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 611: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

NoColor Representsamissingcolor.BaseClass:Color

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 612: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 613: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

RGBColor ThedefinitionofanRGBcolormode.BaseClass:

Color

Properties Property Type Access Description

blue number(range:0-255)

r/w Thebluecolorvalue.Range:0.0to255.0.(default:255)

green number(range:0-255)

r/w Thegreencolorvalue.Range:0.0to255.0.(default:255)

hexValue string r/w Thehexrepresentationofthiscolor.

red number(range:0-255)

r/w Theredcolorvalue.Range:0.0to255.0.(default:255)

Class Property Type Access Description

blue number(range:0-255)

r/w Thebluecolorvalue.Range:0.0to255.0.(default:255)

green number(range:0-255)

r/w Thegreencolorvalue.Range:0.0to255.0.(default:255)

hexValue string r/w Thehexrepresentationofthiscolor.

red number(range:0-255)

r/w Theredcolorvalue.Range:0.0to255.0.(default:255)

Page 614: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Elementof ExportOptionsSaveForWeb.matteColorGalleryCustomColorOptions.activeLinkColorGalleryCustomColorOptions.backgroundColorGalleryCustomColorOptions.bannerColorGalleryCustomColorOptions.linkColorGalleryCustomColorOptions.textColorGalleryCustomColorOptions.visitedLinkColorGallerySecurityOptions.textColorPicturePackageOptions.textColorSolidColor.nearestWebColorSolidColor.nearestWebColorSolidColor.rgbSolidColor.rgb

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 615: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 616: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PathItem Apathordrawingobject,suchastheoutlineofashapeorastraightorcurved

line,whichcontainssubpathsthatcompriseitsgeometry.

QuickLinks add,deselect,duplicate,duplicate,fillPath,makeClippingPathmakeSelection,remove,removeAll,select,strokePath

Hierarchy Object

PathItem

Properties Property Type Access Description

kind PathKind:PathKind.NORMALPATHPathKind.CLIPPINGPATHPathKind.WORKPATHPathKind.VECTORMASKPathKind.TEXTMASK

r/w Thetypeofpath.

name string r/w Thenameofthepathitem.

parent Object readonly Theobject'scontainer.

subPathItems SubPathItems SubPathItem readonly Thesubpathobjectsforthispathitem.

typename string readonly Theclassnameoftheobject.

Methods InstancesPathItemadd()Addsanelement.

voiddeselect()Unselectstheselection,nopathitemsareselected.

PathItemduplicate(relativeObject:Object,insertionLocation

Page 617: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ElementPlacement)Duplicatethisobject.Parameter Type

relativeObject Object

insertionLocation ElementPlacement:ElementPlacement.PLACEAFTERElementPlacement.PLACEBEFOREElementPlacement.PLACEATEND

PathItemduplicate([name:string])Duplicatesthispathitem.Parameter Type Description

name string Thenameforthenewpath.(Optional)

voidfillPath([fillColor:any][,mode:ColorBlendMode][,preserveTransparency:bool][,feather:number][,antiAlias:wholePath:bool])Fillstheareaenclosedbythepath.Parameter Type

fillColor any

mode ColorBlendMode:ColorBlendMode.NORMALColorBlendMode.DISSOLVEColorBlendMode.BEHINDColorBlendMode.CLEARColorBlendMode.DARKENColorBlendMode.MULTIPLYColorBlendMode.COLORBURNColorBlendMode.LINEARBURNColorBlendMode.LIGHTENColorBlendMode.SCREENColorBlendMode.COLORDODGE

Page 618: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorBlendMode.LINEARDODGEColorBlendMode.OVERLAYColorBlendMode.SOFTLIGHTColorBlendMode.HARDLIGHTColorBlendMode.VIVIDLIGHTColorBlendMode.LINEARLIGHTColorBlendMode.PINLIGHTColorBlendMode.DIFFERENCEColorBlendMode.EXCLUSIONColorBlendMode.HUEColorBlendMode.SATURATIONColorBlendMode.COLORColorBlendMode.LUMINOSITYColorBlendMode.HARDMIXBLEND

opacity number

preserveTransparency bool

feather number

antiAlias bool

Page 619: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

wholePath bool

voidmakeClippingPath([flatness:number])Makesthispathitemtheclippingpathforthisdocument.Parameter Type Description

flatness number Flatnessindevicepixels;tellsthePostScriptprinterhowtoapproximatecurves.Range:0.2to100).(Optional)

voidmakeSelection([feather:number][,antiAlias:bool][,SelectionType])Makesaselectionobject,whoseborderisthepath,fromthispathitemobject.Parameter Type Description

feather number Thefeatheramountinpixels.Range:0.0to250.0.(Optional)

antiAlias bool Iftrue,theselectionusesanti-aliasing.(Optional)

operation SelectionType:SelectionType.REPLACESelectionType.EXTENDSelectionType.DIMINISHSelectionType.INTERSECT

Theselectionbehaviorrelativetotheexistingselection(whenaselectionalreadyexists).(Optional)

voidremove()Deletesthisobject.

voidremoveAll()Deletesallelements.

voidselect()Makesthispathitemtheactiveorselectedpathitem.

voidstrokePath([tool:ToolType][,simulatePressure:bool

Page 620: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Strokesthepath.Parameter Type

tool ToolType:ToolType.PENCILToolType.BRUSHToolType.ERASERToolType.BACKGROUNDERASERToolType.CLONESTAMPToolType.PATTERNSTAMPToolType.HEALINGBRUSHToolType.HISTORYBRUSHToolType.ARTHISTORYBRUSHToolType.SMUDGEToolType.BLURToolType.SHARPENToolType.DODGEToolType.BURNToolType.SPONGEToolType.COLORREPLACEMENTTOOL

simulatePressure bool

Return PathItemPathItem.add()PathItemPathItem.duplicate(relativeObject:Object,insertionLocation

ElementPlacement)PathItemPathItem.duplicate([name:string])PathItemPathItems.[](index:uint)PathItemPathItems.add(name:string,entirePath:ArrayofPathItemPathItems.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 621: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 622: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PathKind Thetypeofpath.

Value Name Description Value

PathKind.CLIPPINGPATH Clippingpath. int2

PathKind.NORMALPATH Normalpath. int1

PathKind.TEXTMASK Textmaskpath. int5

PathKind.VECTORMASK Vectormaskpath.

int4

PathKind.WORKPATH Workpath. int3

Usage AspropertyPathItem.kind

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 623: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 624: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PathPoint Informationaboutanarrayofpathpointinfoobjects.Youdonotuse

thepathpointobjecttocreatepointsthatmakeupapath.Rather,youusethepathpointobjecttoretrieveinformationaboutthepointsthatdescribepathsegments.Tocreatepathpoints,usethepathpointinfoobject.

Hierarchy Object

PathPoint

Properties Property Type Access

anchor Point readonly Theposition(coordinates)oftheanchorpoint.

kind PointKind:PointKind.SMOOTHPOINTPointKind.CORNERPOINT

readonly Thetypeofpoint.

leftDirection Point readonly Thelocationoftheleftdirectionpoint(the"in"position).

parent Object readonly Theobject'scontainer.

rightDirection Point readonly Thelocationoftherightdirectionpoint(the"out"position).

Page 625: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

typename string readonly Theclassnameoftheobject.

Return PathPointPathPoints.[](index:uint)PathPointPathPoints.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 626: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 627: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PathPointInfo Apointonapath,expressedasanarrayofthreecoordinatearrays:

theanchorpoint,leftdirectionpoint,andrightdirectionpoint.Forpathsthatarestraightsegments(notcurved),thecoordinatesofallthreepointsarethesame.Forcurvedsegements,thecoordinatesaredifferent.Thedifferencebetweentheanchorpointandtheleftorrightdirectionpointsdeterminesthearcofthecurve.Youusetheleftdirectionpointtobendthecurve"outward"ormakeitconvex;youusetherightdirectionpointtobendthecurve"inward"ormakeitconcave.

Properties Property Type Access

anchor ArrayofPoint r/w

kind PointKind:PointKind.SMOOTHPOINTPointKind.CORNERPOINT

r/w

leftDirection ArrayofPoint r/w

rightDirection ArrayofPoint r/w

Page 628: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class Property Type Access

anchor ArrayofPoint r/w

kind PointKind:PointKind.SMOOTHPOINTPointKind.CORNERPOINT

r/w

leftDirection ArrayofPoint r/w

rightDirection ArrayofPoint r/w

Elementof SubPathInfo.entireSubPath

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 629: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 630: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PointKind Thepathpointkind.

Value Name Description Value

PointKind.CORNERPOINT Thepointmustbeacorner.

int2

PointKind.SMOOTHPOINT Thepointcanbeacurve.

int1

Usage AspropertyPathPoint.kindPathPointInfo.kindPathPointInfo.kind

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 631: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 632: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ShapeOperation Specifieshowtocombinetheshapesifthedestinationimage

alreadyhasaselection.

Value Name Description

ShapeOperation.SHAPEADD Addstheshapes.

ShapeOperation.SHAPEINTERSECT Theresultingshapeistheareaofintersectionbetweenthetwoshapes.

ShapeOperation.SHAPESUBTRACT Subtractstheloadedshapefromtheselectionisthedestinationimage.

ShapeOperation.SHAPEXOR Replacestheshapeinthedestinationimagewiththeloadedselection.

Usage AspropertySubPathInfo.operationSubPathItem.operation

Page 633: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 634: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 635: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SubPathInfo Anarrayofpathpointinfoobjectsthatdescribesastraightorcurvedsegment

ofapath.

Properties Property Type

closed bool

entireSubPath ArrayofPathPointInfo

operation ShapeOperation:ShapeOperation.SHAPEADDShapeOperation.SHAPEXORShapeOperation.SHAPEINTERSECTShapeOperation.SHAPESUBTRACT

Usedin: PathItemPathItems.add(name:string,entirePath:Array

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 636: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 637: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SubPathItem Informationaboutapath.Youdonotusethesubpathitemobjecttocreate

apath.Rather,youcreatepathsegmentsusingthesubpathinfoobject.Usethesubpathitemobjecttoretrieveinformationaboutapath.Allpropertiesareread-only.

Hierarchy Object

SubPathItem

Properties Property Type

closed bool

operation ShapeOperation:ShapeOperation.SHAPEADDShapeOperation.SHAPEXORShapeOperation.SHAPEINTERSECTShapeOperation.SHAPESUBTRACT

parent Object

pathPoints PathPoints PathPoint

typename string

Return SubPathItemSubPathItems.[](index:uint)SubPathItemSubPathItems.getByName(name:string

Jongware,28-

Page 638: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Aug-2012v3.0.3i Contents::Index

Page 639: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 640: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ToolType Toolsforthestrokepathcommand.

Value Name Description

ToolType.ARTHISTORYBRUSH Arthistorybrush.

ToolType.BACKGROUNDERASER Backgrounderaser.

ToolType.BLUR Blur.

ToolType.BRUSH Brush.

ToolType.BURN Burn.

ToolType.CLONESTAMP Clonestamp.

ToolType.COLORREPLACEMENTTOOL Colorreplacementtool.

ToolType.DODGE Dodge.

ToolType.ERASER Eraser.

ToolType.HEALINGBRUSH Healingbrush.

ToolType.HISTORYBRUSH Historybrush.

ToolType.PATTERNSTAMP Patternstamp.

ToolType.PENCIL Pencil.

ToolType.SHARPEN Sharpen.

ToolType.SMUDGE Smudge.

ToolType.SPONGE Sponge.

Page 641: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Usage InfunctionvoidPathItem.strokePath([tool:ToolType][,simulatePressure

bool])

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 642: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 643: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Notifier Anevent-handlerobjectthattellsthescripttoexecute

specifiedcodewhenaspecifiedeventoccurs.Fornotifierstowork,theymustbeenabled.Seethe'notifiersenabled'propertyoftheApplicationobject.Eventsthatoccurwithinscriptsdonotgenerallytriggernotifiers,becausetheyoccurinsideofa"playscript"event.

QuickLinks remove,removeAll

Hierarchy Object

Notifier

Properties Property Type Access Description

event string readonly TheeventIDinfourcharactersorauniquestringthatthenotifierisassociatedwith.

eventClass string readonly TheclassIDassociatedwiththeeventfortheNotifierobject,fourcharactersorauniquestring.

eventFile File readonly Thepathtothefiletoexecutewhentheeventoccurs/activatesthenotifier.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods Instancesvoidremove()Deletesthisobject.

Page 644: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidremoveAll()Deletesallelements.

Return NotifierNotifiers.[](index:uint)NotifierNotifiers.add(event:string,eventFile:File[,

eventClass:string])NotifierNotifiers.getByName(name:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 645: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 646: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ActionDescriptor Arecordofkey-valuepairsforactions,such

asthoseincludedontheAdobePhotoshopActionsmenu.TheActionDescriptorclassispartoftheActionManagerfunctionality.FormoredetailsontheActionManager,seethePhotoshopScriptingGuide.

QuickLinks clear,erase,fromStream,getBoolean,getClass,getData,getDouble,getEnumerationType,getEnumerationValuegetInteger,getKey,getList,getObjectTypegetObjectValue,getPath,getReference,getString,getType,getUnitDoubleType,getUnitDoubleValue,hasKey,isEqual,putBoolean,putClass,putData,putDoubleputEnumerated,putInteger,putList,putObject,putPath,putReference,putStringputUnitDouble,toStream

Properties Property Type Access Description

count int readonly Thenumberofkeyscontainedinthedescriptor.

Class Property Type Access Description

count int readonly Thenumberofkeyscontainedinthedescriptor.

Methods Instancesvoidclear()Clearsthedescriptor.

Page 647: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voiderase(key:number)Erasesakeyfromthedescriptor.Parameter Type Description

key number

voidfromStream(value:string)Createsadescriptorfromastreamofbytes;forreadingfromdisk.Parameter Type Description

value string

boolgetBoolean(key:number)Getsthevalueofakeyoftypeboolean.Parameter Type Description

key number

numbergetClass(key:number)Getsthevalueofakeyoftypeclass.Parameter Type Description

key number

stringgetData(key:number)Getsrawbytedataasastringvalue.Parameter Type Description

key number

numbergetDouble(key:number)Getsthevalueofakeyoftypedouble.Parameter Type Description

key number

numbergetEnumerationType(key:numberGetstheenumerationtypeofakey.Parameter Type Description

Page 648: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

key number

numbergetEnumerationValue(key:number)Getstheenumerationvalueofakey.Parameter Type Description

key number

numbergetInteger(key:number)Getsthevalueofakeyoftypeinteger.Parameter Type Description

key number

numbergetKey(key:number)GetstheIDoftheNthkey,providedbyindex.Parameter Type Description

key number

ActionListgetList(key:number)Getsthevalueofakeyoftypelist.Parameter Type Description

key number

numbergetObjectType(key:number)GetstheclassIDofanobjectinakeyoftypeobject.Parameter Type Description

key number

ActionDescriptorgetObjectValue(key:number)Getsthevalueofakeyoftypeobject.Parameter Type Description

key number

Page 649: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

FilegetPath(key:number)GetsthevalueofakeyoftypeFile.Parameter Type Description

key number

ActionReferencegetReference(key:number)GetsthevalueofakeyoftypeActionReference.Parameter Type Description

key number

stringgetString(key:number)Getsthevalueofakeyoftypestring.Parameter Type Description

key number

DescValueTypegetType(key:number)Getsthetypeofakey.Parameter Type Description

key number

numbergetUnitDoubleType(key:numberGetstheunittypeofakeyoftypeUnitDouble.Parameter Type Description

key number

numbergetUnitDoubleValue(key:number...Parameter Type Description

key number

boolhasKey(key:number)...

Page 650: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type Description

key number

boolisEqual(otherDesc:ActionDescriptor...Parameter Type Description

otherDesc ActionDescriptor

voidputBoolean(key:number,value:bool...Parameter Type Description

key number

value bool

voidputClass(key:number,value:number...Parameter Type Description

key number

value number

voidputData(key:number,value:string)...Parameter Type Description

key number

value string

voidputDouble(key:number,value:number)...Parameter Type Description

key number

value number

Page 651: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

voidputEnumerated(key:number,enumType:number,value:number)...Parameter Type Description

key number

enumType number

value number

voidputInteger(key:number,value:number)...Parameter Type Description

key number

value number

voidputList(key:number,value:ActionList)...Parameter Type Description

key number

value ActionList

voidputObject(key:number,classID:number,value:ActionDescriptor)...Parameter Type Description

key number

classID number

value ActionDescriptor

voidputPath(key:number,value:File)...Parameter Type Description

Page 652: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

key number

value File

voidputReference(key:number,value:ActionReference)...Parameter Type Description

key number

value ActionReference

voidputString(key:number,value:string...Parameter Type Description

key number

value string

voidputUnitDouble(key:number,unitIDnumber,value:number)...Parameter Type Description

key number

unitID number

value number

stringtoStream()...

Elementof Application.playbackParameters

Usedin: boolActionDescriptor.isEqual(otherDescActionDescriptor)

voidActionDescriptor.putObject(key:number,classID:number,value:ActionDescriptor)

Page 653: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ActionDescriptorApplication.executeAction(eventID:int[,descriptor:ActionDescriptor][,displayDialogs:DialogModes])

voidApplication.putCustomOptions(key:string,customObject:ActionDescriptor[,persistent:bool=true])

Return ActionDescriptorActionDescriptor.getObjectValue(keynumber)

ActionDescriptorApplication.executeAction(eventID:int[,descriptor:ActionDescriptor][,displayDialogs:DialogModes])

ActionDescriptorApplication.executeActionGet(reference:ActionReference)

ActionDescriptorApplication.getCustomOptions(key:string)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 654: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 655: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ActionList ThelistofcommandsthatcompriseanAction(suchas

anActioncreatedusingtheActionspaletteintheAdobePhotoshopapplication).TheactionlistobjectispartoftheActionManagerfunctionality.FordetailsonusingtheActionManager,seethePhotoshopScriptingGuide.

Class Property Type Access Description

count int readonly Thenumberofcommandsthatcomprisetheaction.

Usedin: voidActionDescriptor.putList(key:number,value:ActionList)

Return ActionListActionDescriptor.getList(key:number)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 656: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 657: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ActionReference Containsdatadescribingareferenced

Action.TheactionreferenceobjectispartoftheActionManagerfunctionality.FordetailsonusingtheActionManager,seethePhotoshopScriptingGuide.

Usedin: voidActionDescriptor.putReference(key:number,value:ActionReference)

ActionDescriptorApplication.executeActionGet(reference:ActionReference)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 658: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 659: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ArtLayers Thecollectionofartlayerobjectsinthedocument.

SeealsoArtLayer.

QuickLinks [],add,getByName,removeAll

Hierarchy Object

ArtLayers

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesArtLayer[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

ArtLayeradd()Addsanelement.

ArtLayergetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

voidremoveAll()

Page 660: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Deletesallelements.

Elementof Document.artLayersLayerSet.artLayers

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 661: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 662: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Channels Thecollectionofchannelobjectsinthedocument.

SeealsoChannel.

QuickLinks [],add,getByName,removeAll

Hierarchy Object

Channels

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesChannel[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

Channeladd()Addsanelement.

ChannelgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

voidremoveAll()Deletesallelements.

Page 663: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Elementof Document.channels

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 664: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 665: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorSamplers Thecollectionofcolorsamplersinthe

document.SeealsoColorSampler.

QuickLinks [],add,getByName

Hierarchy Object

ColorSamplers

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesColorSampler[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

ColorSampleradd(position:UnitPoint)Createsacolorsampler.Parameter Type Description

position UnitPoint Thehorizontalandvertical(x,y)

Page 666: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

locations,respectively,ofthecolorsampler.

ColorSamplergetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

Elementof Document.colorSamplers

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 667: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 668: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

CountItems Thecollectionofcountitemsinthedocument.

SeealsoCountItem.

QuickLinks [],add,getByName

Hierarchy Object

CountItems

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesCountItem[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

CountItemadd(position:UnitPoint)Createsacountitem.Parameter Type Description

position UnitPoint Thepositionoforigin.

CountItemgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.

Page 669: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type Description

name string

Elementof Document.countItems

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 670: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 671: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Documents Acollectionofdocuments.

SeealsoDocument.

QuickLinks [],add,getByName

Hierarchy Object

Documents

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesDocument[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type

index uint

Documentadd([width:UnitValue][,height:UnitValue][,string][,mode:NewDocumentMode=NewDocumentMode.RGBDocumentFill=DocumentFill.WHITE][,pixelAspectRatioBitsPerChannelType=BitsPerChannelType.EIGHT][,Adocument.Parameter Type

width UnitValue

height UnitValue

resolution number

Page 672: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

name string

mode NewDocumentMode:NewDocumentMode.GRAYSCALENewDocumentMode.RGBNewDocumentMode.CMYKNewDocumentMode.LABNewDocumentMode.BITMAP

initialFill DocumentFill:DocumentFill.WHITEDocumentFill.BACKGROUNDCOLORDocumentFill.TRANSPARENT

pixelAspectRatio number

bitsPerChannel BitsPerChannelType:BitsPerChannelType.ONEBitsPerChannelType.EIGHTBitsPerChannelType.SIXTEENBitsPerChannelType.THIRTYTWO

colorProfileName string

DocumentgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type

name string

Elementof Application.documents

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 673: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 674: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

HistoryStates Thehistorystateobjectsassociatedwiththe

document.SeealsoHistoryState.

QuickLinks [],getByName

Hierarchy Object

HistoryStates

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesHistoryState[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

HistoryStategetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

Page 675: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Elementof Document.historyStates

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 676: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 677: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LayerComps Thelayercompobjectsassociatedwiththe

document.SeealsoLayerComp.

QuickLinks [],add,getByName

Hierarchy Object

LayerComps

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesLayerComp[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

LayerCompadd(name:string[,comment:string][,appearance:bool=false][,position:bool=false][,visibility:bool=true])Addsalayercomp.Parameter Type Description

name string Thenameofthelayer

Page 678: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

comp.

comment string Thedescriptionofthelayercomp.(Optional)

appearance bool Iftrue,usesthelayerappearanceorstyleforthislayercomp.(default:false)(Optional)

position bool Iftrue,usesthelayerpositionforthislayercomp.(default:false)(Optional)

visibility bool Iftrue,usesthelayervisibilityforthislayercomp.(default:true)(Optional)

LayerCompgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

Elementof Document.layerComps

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 679: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 680: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

LayerSets Thecollectionoflayersetobjectsinthedocument.

SeealsoLayerSet.

QuickLinks [],add,getByName,removeAll

Hierarchy Object

LayerSets

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesLayerSet[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

LayerSetadd()Addsanelement.

LayerSetgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

voidremoveAll()

Page 681: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Deletesallelements.

Elementof Document.layerSetsLayerSet.layerSets

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 682: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 683: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Layers Thecollectionoflayerobjects,includingartlayerandlayer

setobjects,inthedocument.SeealsoLayer.

QuickLinks [],getByName,removeAll

Hierarchy Object

Layers

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesLayer[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

LayergetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

voidremoveAll()Deletesallelements.

Elementof Document.layersLayerSet.layers

Page 684: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 685: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 686: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Notifiers Acollectionofnotifierobjectsinthedocument.

SeealsoNotifier.

QuickLinks [],add,getByName,removeAll

Hierarchy Object

Notifiers

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesNotifier[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

Notifieradd(event:string,eventFile:File[,eventClass:string])Createsanotifier.Parameter Type Description

event string Theclassidoftheevent,fourcharactersorauniquestring.

eventFile File Thescriptfiletoexecutewhentheeventoccurs.

eventClass string Theclassoftheobjecttheeventis

Page 687: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

appliedto,fourcharactersorauniquestring.Whenaneventappliestomultipletypesofobjects,youusetheeventclassparametertodistinguishwhichobjectthisNotifierappliesto.Forexample,theMakeevent(�Mk�)appliestodocuments(�Dcmn�),channels(�Chnl�)andotherobjects.(Optional)

NotifiergetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

voidremoveAll()Deletesallelements.

Elementof Application.notifiers

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 688: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 689: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PathItems Thecollectionofpathitemobjectsinthedocument.

SeealsoPathItem.

QuickLinks [],add,getByName

Hierarchy Object

PathItems

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesPathItem[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

PathItemadd(name:string,entirePath:ArrayofSubPathInfo)Createsanewpathitem.Parameter Type Description

name string Thenameforthenewpath.

entirePath ArrayofSubPathInfo

Theitem'ssubpaths.

Page 690: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PathItemgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

Elementof Document.pathItems

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 691: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 692: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PathPoints Acollectionofpathpointobjectsthatcomprisesthe

pathpointspropertyofthesubpathitemobject.SeealsoPathPoint.

QuickLinks [],getByName

Hierarchy Object

PathPoints

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesPathPoint[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

PathPointgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

Elementof SubPathItem.pathPoints

Page 693: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 694: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 695: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SubPathItems Anarrayofpathpointinfoobjectsthat

describesastraightorcurvedsegmentofapath.Youdonotusethesubpathitemobjecttocreateasubpath.Rather,youusethesubpathitemobjecttoretrieveinformationaboutasubpath.Tocreatesubpaths,seesubpathinfo.SeealsoSubPathItem.

QuickLinks [],getByName

Hierarchy Object

SubPathItems

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesSubPathItem[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

SubPathItemgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.

Page 696: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type Description

name string

Elementof PathItem.subPathItems

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 697: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 698: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

TextFonts Acollectionoffontsavailableonyourcomputer.

SeealsoTextFont.

QuickLinks [],getByName

Hierarchy Object

TextFonts

Properties Property Type Access Description

length int readonly Numberofelementsinthecollection.

parent Object readonly Theobject'scontainer.

typename string readonly Theclassnameoftheobject.

Methods InstancesTextFont[](index:uint)Getanelementinthecollectionwiththeprovidedindex.Parameter Type Description

index uint

TextFontgetByName(name:string)Getthefirstelementinthecollectionwiththeprovidedname.Parameter Type Description

name string

Elementof Application.fonts

Page 699: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 700: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 701: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Point Describesapoint.Thisclassisalsoatwo-elementcollection.

Properties Property Type Access Description

left number r/w Theleftcoordinate.

length number readonly Thearraylength.(default:2)

top number r/w Thetopcoordinate.

x number r/w Theleftcoordinate.

y number r/w Thetopcoordinate.

Elementof PathPoint.anchorPathPoint.leftDirectionPathPoint.rightDirectionPathPointInfo.anchorPathPointInfo.anchorPathPointInfo.leftDirectionPathPointInfo.leftDirectionPathPointInfo.rightDirectionPathPointInfo.rightDirection

Usedin: voidArtLayer.adjustCurves(curveShape:ArrayofPoint)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 702: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 703: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Rectangle Describesarectangle.Thisclassisalsoafour-element

collection.

Properties Property Type Access Description

bottom number r/w Thebottomcoordinate.

height number r/w Theheight.

left number r/w Theleftcoordinate.

length number readonly Thearraylength.(default:4)

right number r/w Therightcoordinate.

top number r/w Thetopcoordinate.

width number r/w Thewidth.

x number r/w Theleftcoordinate.

y number r/w Thetopcoordinate.

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 704: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 705: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ColorModel Colormodels.

Value Name Description Value

ColorModel.CMYK CMYK. int3

ColorModel.GRAYSCALE Grayscale. int1

ColorModel.HSB HSB. int5

ColorModel.LAB Lab. int4

ColorModel.NONE Thecolormodelhasnotyetbeenassigned.

int50

ColorModel.RGB RGB. int2

Usage AspropertySolidColor.modelSolidColor.model

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 706: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 707: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

DescValueType Thevaluetypeofanobject.

Value Name Description

DescValueType.ALIASTYPE Alias.

DescValueType.BOOLEANTYPE Boolean.

DescValueType.CLASSTYPE Class.

DescValueType.DOUBLETYPE Double.

DescValueType.ENUMERATEDTYPE Enumeration.

DescValueType.INTEGERTYPE Integer.

DescValueType.LISTTYPE Actionlist.

DescValueType.OBJECTTYPE Object.

DescValueType.RAWTYPE Raw.

DescValueType.REFERENCETYPE Reference.

DescValueType.STRINGTYPE String.

DescValueType.UNITDOUBLE Unitvalueoftypedouble.

Usage ReturnDescValueTypeActionDescriptor.getType(key

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 708: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 709: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

EPSOpenOptions OptionsthatcanbespecifiedwhenopeningagenericEPSdocument.BaseClass:

OpenOptions

Class Property Type

antiAlias bool

constrainProportions bool

height UnitValue

mode OpenDocumentModeOpenDocumentMode.GRAYSCALEOpenDocumentMode.RGBOpenDocumentMode.CMYKOpenDocumentMode.LAB

resolution number

width UnitValue

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 710: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 711: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ElementPlacement ControlswherePhotoshopplacesanelement.

Value Name

ElementPlacement.PLACEAFTER

ElementPlacement.PLACEATEND

ElementPlacement.PLACEBEFORE

Usage InfunctionChannelChannel.duplicate(relativeObject

insertionLocation:ElementPlacementDocumentDocument.duplicate(relativeObject

insertionLocation:ElementPlacementLayerLayer.duplicate([relativeObject:

insertionLocation:ElementPlacementLayerLayer.move(relativeObject:Object

insertionLocation:ElementPlacementPathItemPathItem.duplicate(relativeObject

insertionLocation:ElementPlacement

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 712: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 713: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFEncodingType ThetypeofcompressiontousewhensavingadocumentinPDF

format.

Value Name

PDFEncodingType.JPEG

PDFEncodingType.JPEG2000HIGH

PDFEncodingType.JPEG2000LOSSLESS

PDFEncodingType.JPEG2000LOW

PDFEncodingType.JPEG2000MED

PDFEncodingType.JPEG2000MEDHIGH

PDFEncodingType.JPEG2000MEDLOW

Page 714: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFEncodingType.JPEGHIGH

PDFEncodingType.JPEGLOW

PDFEncodingType.JPEGMED

PDFEncodingType.JPEGMEDHIGH

PDFEncodingType.JPEGMEDLOW

PDFEncodingType.NONE

PDFEncodingType.PDFZIP

PDFEncodingType.PDFZIP4BIT

Page 715: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Usage AspropertyPDFSaveOptions.encoding

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 716: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 717: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

PDFOpenOptions OptionsthatcanbespecifiedwhenopeningagenericPDFdocument.BaseClass:

OpenOptions

Class Property Type

antiAlias bool

bitsPerChannel BitsPerChannelTypeBitsPerChannelType.ONEBitsPerChannelType.EIGHTBitsPerChannelType.SIXTEENBitsPerChannelType.THIRTYTWO

constrainProportions bool

cropPage CropToType:CropToType.BOUNDINGBOXCropToType.MEDIABOXCropToType.CROPBOXCropToType.BLEEDBOXCropToType.TRIMBOXCropToType.ARTBOX

height UnitValue

mode OpenDocumentModeOpenDocumentMode.GRAYSCALEOpenDocumentMode.RGBOpenDocumentMode.CMYKOpenDocumentMode.LAB

Page 718: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

name string

page int

resolution number

suppressWarnings bool

usePageNumber bool

width UnitValue

Page 719: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 720: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Enumeration

Page 721: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

ReferenceFormType Thetypeofactionreferenceobject.

Value Name

ReferenceFormType.CLASSTYPE

ReferenceFormType.ENUMERATED

ReferenceFormType.IDENTIFIER

ReferenceFormType.INDEX

ReferenceFormType.NAME

ReferenceFormType.OFFSET

ReferenceFormType.PROPERTY

Usage

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 722: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 723: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

SolidColor Acolordefinitionusedinthedocument.

QuickLinks isEqual

Properties Property Type Access

cmyk CMYKColor r/w

gray GrayColor r/w

hsb HSBColor r/w

lab LabColor r/w

model ColorModel:ColorModel.GRAYSCALEColorModel.RGBColorModel.CMYKColorModel.LABColorModel.HSBColorModel.NONE

r/w

nearestWebColor RGBColor readonly

rgb RGBColor r/w

Page 724: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class Property Type Access

cmyk CMYKColor r/w

gray GrayColor r/w

hsb HSBColor r/w

lab LabColor r/w

model ColorModel:ColorModel.GRAYSCALEColorModel.RGBColorModel.CMYKColorModel.LABColorModel.HSBColorModel.NONE

r/w

nearestWebColor RGBColor readonly

rgb RGBColor r/w

Methods InstancesboolisEqual(color:SolidColor)Comparestwocolors.

Page 725: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type Description

color SolidColor Anothercolortocomparewith.

Elementof Application.backgroundColorApplication.foregroundColorChannel.colorColorSampler.colorDocumentPrintSettings.backgroundColorTextItem.color

Usedin: voidArtLayer.photoFilter([fillColor:SolidColor][,densitypreserveLuminosity:bool=true])

boolSolidColor.isEqual(color:SolidColor)

Jongware,28-Aug-2012v3.0.3i

Contents::Index

Page 726: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Class

Page 727: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

global Theglobalmethodsandproperties.

QuickLinks alert,confirm,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,eval,isFinite,isNaN,isXMLName,localize,parseFloat,parseInt,prompt,setDefaultXMLNamespace,unescape,uneval

Class Property Type Access Description

BridgeTalk BridgeTalk r/w TheglobalBridgeTalkobject.

Infinity number r/w TheInfinityglobalpropertyisapredefinedvariablewiththevalueforinfinity.

NaN number r/w TheNaNglobalpropertyisapredefinedvariablewiththevalueNaN(Not-a-Number),asspecifiedbytheIEEE-754standard.

app Application readonly Theapplicationobject

undefined Undefined r/w Thisglobalpropertyisapredefinedvariablewiththevalueforanundefinedvalue.

Methods voidalert(message:string[,title:string][,errorIcon:bool=false])DisplaysanalertboxParameter Type Description

message string Thetexttodisplay

Page 728: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

title string Thetitleofthealert;ignoredontheMacintosh(Optional)

errorIcon bool DisplayanErroricon;ignoredontheMacintosh(default:false)

boolconfirm(message:string[,noAsDefault:bool=false][,title:string])DisplaysanalertboxwithYesandNobuttons;returnstrueforYesParameter Type Description

message string Thetexttodisplay

noAsDefault bool SettotruetosettheNobuttonasthedefaultbutton(default:false)

title string Thetitleofthealert;ignoredontheMacintosh(Optional)

stringdecodeURI(uri:string)DecodesastringcreatedwithencodeURI().Parameter Type Description

uri string Thetexttodecode.

stringdecodeURIComponent(uri:string)DecodesastringcreatedwithencodeURIComponent().Parameter Type Description

uri string Thetexttodecode.

stringencodeURI(text:string)EncodesastringafterRFC2396.CreateanUTF-8ASCIIencodedversionofthisstring.ThestringisconvertedintoUTF-8.Everynon-alphanumericcharacterisencodedasapercentescapecharacteroftheform%xx,wherexxisthehexvalueofthecharacter.AftertheconversiontoUTF-8encodingandescaping,itisguaranteedthatthestringdoesnotcontaincharacterscodesgreaterthan127.Thelistofcharactersnottobeencodedis-_.!~*'();/?:@&=+$,#.Themethodreturnsfalseonerrors.

Page 729: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

Parameter Type Description

text string Thetexttoencode.

stringencodeURIComponent(text:string)EncodesastringafterRFC2396.CreateanUTF-8ASCIIencodedversionofthisstring.ThestringisconvertedintoUTF-8.Everynon-alphanumericcharacterisencodedasapercentescapecharacteroftheform%xx,wherexxisthehexvalueofthecharacter.AftertheconversiontoUTF-8encodingandescaping,itisguaranteedthatthestringdoesnotcontaincharacterscodesgreaterthan127.Thelistofcharactersnottobeencodedis-_.!~*'().Themethodreturnsfalseonerrors.Parameter Type Description

text string Thetexttoencode.

stringescape(aString:string)CreatesaURL-encodedstringfromaString.Inthenewstring,charactersofaStringthatrequireURLencodingarereplacedwiththeformat%xx,wherexxisthehexadecimalvalueofthecharactercodeintheUnicodecharacterset.ThisformatisusedtotransmitinformationappendedtoaURLduring,forexample,executionoftheGETmethod.Usetheunescape()globalfunctiontotranslatethestringbackintoitsoriginalformat.ReturnsastringwhichisaStringURL-encoded.Parameter Type Description

aString string Thestringtobeencoded.

Example escape(aString)

anyeval(stringExpression:string)EvaluatesitsargumentasaJavaScriptscript,andreturnstheresultofevaluation.Youcanpasstheresultofanobject'stoSource()methodtoreconstructthatobject.Parameter Type Description

Page 730: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

stringExpression string Thestringtoevaluate.

Example eval(stringExpression)

boolisFinite(expression:number)Evaluatesanexpressionandreportswhethertheresultisafinitenumber.Returnstrueiftheexpressionisafinitenumber,falseotherwise.Falseifthevalueisinfinityornegativeinfinity.Parameter Type Description

expression number AnyvalidJavaScriptexpression.

Example isFinite(expression)

boolisNaN(expression:number)Evaluatesanexpressionandreportswhethertheresultis"Not-a-Number"(NaN).Returnstrueiftheresultofevaluationisnotanumber(NaN),falseifthevalueisanumber.Parameter Type Description

expression number AnyvalidJavaScriptexpression.

Example isNaN(expression)

boolisXMLName(name:string)ReturnstrueisthesuppliedstringisavalidXMLname.Parameter Type Description

name string TheXMLnametotest.

stringlocalize(what:string[,argument:any])LocalizesaZString-encodedstringandmergesadditionalargumentsintothestring.Parameter Type Description

what string Thestringtolocalize.AZString-encodedstringthatcancontainplaceholderforadditionalargumentsintheform%1to%n.

Page 731: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

argument any Optionalargument(s)tobemergedintothestring.(Optional)

numberparseFloat(text:string)Extractsafloating-pointnumberfromastring.Parsesastringtofindthefirstsetofcharactersthatcanbeconvertedtoafloatingpointnumber,andreturnsthatnumber,orNaNifitdoesnotencountercharactersthatitcanconvertedtoanumber.Thefunctionsupportsexponentialnotation.Parameter Type Description

text string Thestringfromwhichtoextractafloatingpointnumber.

Example parseFloat(aString)

numberparseInt(text:string[,base:number])Extractsanintegerfromastring.Parsesastringtofindthefirstsetofcharacters,inaspecifiedbase,thatcanbeconvertedtoaninteger,andreturnsthatinteger,orNaNifitdoesnotencountercharactersthatitcanconverttoanumber.Parameter Type Description

text string Thestringfromwhichtoextractaninteger.

base number(range:2-36)

Thebaseofthestringtoparse(frombase2tobase36).Ifnotsupplied,baseisdeterminedbytheformatofstring.(Optional)

Example parseInt(aString,base)

stringprompt(prompt:string[,default:string][,title:string])DisplaysadialogallowingtheusertoentertextReturnsnulliftheusercancelledthedialog,thetextotherwiseParameter Type Description

prompt string Thetexttodisplay

default string Thedefaulttexttopresettheeditfield

Page 732: Photoshop CS5 Object Reference 3.0 - documentation.help · Adobe Photoshop CS5 Object Library. Contents Classes for specifying options when exporting documents Suite that applies

with(Optional)

title string Thetitleofthedialog;(Optional)

voidsetDefaultXMLNamespace(namespace:Namespace)DefinesthedefaultXMLnamespace.ThisisareplacementfunctionforthestandardJavaScriptstatementsetdefaultxmlnamespace.Parameter Type Description

namespace Namespace Thenamespacetouse.Omitthisparametertoreturntotheemptynamespace.ThisiseitheraNamespaceobjectorastring.

stringunescape(stringExpression:string)TranslatesURL-encodedstringintoaregularstring,andreturnsthatstring.Usetheescape()globalfunctiontoURL-encodestrings.Parameter Type Description

stringExpression string TheURL-encodedstringtoconvert.

Example unescape(stringExpression)

stringuneval(what:any)Createsasourcecoderepresentationofthesuppliedargument,andreturnsitasastring.Parameter Type Description

what any Theobjecttouneval.

Jongware,28-Aug-2012v3.0.3i

Contents::Index