SCRIPTINGGUIDEADOBEPHOTOSHOPCS5©2010AdobeSystemsIncorporated.Allrightsreserved.Adobe®CreativeSuite®5Photoshop®ScriptingGuideAdobe,theAdobelogo,Illustrator,andPhotoshopareeitherregisteredtrademarksortrademarksofAdobeSystemsInc.intheUnitedStatesand/orothercountries.AppleandMacOSaretrademarksofAppleComputer,Inc.,registeredintheUnitedStatesandothercountries.MicrosoftandWindowsareeitherregisteredtrademarksortrademarksofMicrosoftCorporationintheUnitedStatesandothercountries.JavaScriptandallJava-relatedmarksaretrademarksorregisteredtrademarksofSunMicrosystems,Inc.intheUnitedStatesandothercountries.Allothertrademarksarethepropertyoftheirrespectiveowners.Theinformationinthisdocumentisfurnishedforinformationaluseonly,issubjecttochangewithoutnotice,andshouldnotbeconstruedasacommitmentbyAdobeSystemsInc.AdobeSystemsInc.assumesnoresponsibilityorliabilityforanyerrorsorinaccuraciesthatmayappearinthisdocument.Thesoftwaredescribedinthisdocumentisfurnishedunderlicenseandmayonlybeusedorcopiedinaccordancewiththetermsofsuchlicense.AdobeSystemsInc.,345ParkAvenue,SanJose,California95110,USA.3Contents1Introduction..............................................................6AboutthisManual...........................................................................6ConventionsinthisGuide....................................................................62PhotoshopScriptingBasics................................................8ScriptingOverview...........................................................................8Whyusescriptsinsteadofactions?...................................................8ScriptingSupportinPhotoshop..............................................................9JavaScriptsupport...................................................................9Executingotherscripts......................................................10Startupscripts......................................................................10ExecutingJavaScriptsfromASorVBS...........................