用户手册目录Contents3Introduction5About this manual5Conventions in this guide5Photoshop CS3 Scripting Basics7Scripting Overview7Why use scripts instead of actions?7Scripting Support in Photoshop CS38JavaScript Support8Executing other scripts9Startup Scripts9Executing JavaScripts from AS or VBS9Photoshop CS3 Object Model9Containment Hierarchy10Application and Document Classes10Layer Classes11Layer Comp Class11Channel Class11Selection Class11History State Class12Document Info Class12Path Item, Sub Path Item, and Path Point Classes12Preferences Class12Notifier Class12Count Item Class12Color Sampler Class12Measurement Scale Class12The Containment Hierarchy and the Photoshop CS3 User Interface12Additional Objects14Constants14Creating a Sample Hello World Script15Creating and Running an AppleScript15Creating and Running a VBScript16Creating and Running a JavaScript17Scripting Photoshop CS319Viewing Photoshop CS3 Objects, Commands, and Methods19Viewing Photoshop CS3’s AppleScript Dictionary19Viewing Photoshop CS3’s Type Library (VBS)20Targeting and Referencing the Application Object20Creating New Objects in a Script21Setting the Active Object23Setting the Active Document24Setting the Active Layer25Setting the Active Channels25Opening a Document26Opening a File with Default File Format26Specifying File Formats to Open27Saving a Document29Setting Application Preferences30Allowing or Preventing Dialogs31Working with the Photoshop CS3 Object Model31Using the Application Object31Using the Document Object32Manipulating a Document Object32Working with Layer Objects34Creating an ArtLayer Object34Creating a Layer Set Object35Referencing ArtLayer Objects36Working with Layer Set Objects37Linking Layer Objects38AS38VBS38JS38Applying Styles to Layers38Using the Text Item Object39Determining a Layer’s Kind40Adding and Manipulating Text in a Text Item Object40Working with Selection Objects41Creating and Defining a Selection41Stroking the Selection Border42Inverting Selections43Expanding, Contracting, and Feathering Selections43Filling a Selection43Loading and Storing Selections44Working with Channel Objects45Changing Channel Types45Using the Document Info Object46Using History State Objects46Using Notifier Objects47Using the PathItem Object48Working with Color Objects50Solid Color Classes51Using Hex Values for RGB Color51Getting and Converting Colors51Comparing Colors52Getting a Web Safe Color52Working with Filters53AS53VBS53JS53Other Filters53Understanding Clipboard Interaction54Using the Copy and Paste commands54Using the Copy Merged Command/Method55Working with Units55Unit Values56Special Unit Value Types56AppleScript Unit Considerations56Using Unit Values in Calculations57Unit Value Usage57Setting Ruler and Type Units in a Script59Sample Workflow Automation JavaScripts59Advanced Scripting60Working with Document Preferences60Applying Color to a Text Item63Applying a Wave Filter66Defining the Area of a Selection Object66Applying a MotionBlur Filter69Action Manager72The ScriptListener Plug-In72Installing ScriptListener72Action Manager Scripting Objects73Recording a Script using ScriptListener73Using the Action Manager from JavaScript74Using the Action Manager from a VBS Script75Running JavaScript-based Action Manager code from VBScript78Running JavaScript-based Action Manager code from AppleScript78Using ScriptListener to find event IDs and class IDs79Index82文件大小: 1.3 MB页数: 85Language: English打开用户手册