Book description
Do you spend too much time doing repetitive production tasks such as placing and replacing images, resizing them, dragging them from one document to another, and preparing images for printing instead of being creative? Do you use Adobe Photoshop CS2 and have some experience with scripting? You're in luck. Since Adobe Creative Suite 2 was created with built-in support for scripting, virtually every repetitive or time-consuming task that creative professionals have to do in the Adobe Creative Suite can be streamlined with the help of a script. This book describes how to use JavaScript to manipulate and extend Adobe Photoshop within Adobe Creative Suite 2, and provides reference information for the JavaScript objects, properties, and functions defined by Adobe's applications. Now available in print for the first time, this scripting reference provides the information experienced JavaScript users need to create custom scripts for Photoshop, whether you're looking to automate Camera Raw options and settings, automatically resize and export large batches of images into your page-layout application, or want to automatically add metadata, like a copyright notice, to selected image files. These are just a few examples of how you can use Photoshop CS2's built-in scripting capabilities to save you from hours of repetitive tasks.
Table of contents
- Copyright
- 1. Introduction
-
1. Photoshop Scripting Guide
-
2. Scripting Basics
- What is scripting?
- Why use scripting?
- Why use scripts instead of actions?
- Introducing objects
- Writing script statements
- Object model concepts
- Adobe Photoshop CS2’s Object Model
- Object collections
- Object references
- Using methods
- Using variables
- Using object properties
- Understanding object classes and inheritance
- Using arrays
- Documenting scripts
- Creating a sample Hello World script
- Using operators
- Using conditional statements
- Using subroutines, handlers, and functions
- Troubleshooting and error handling
- Bibliography
-
3. Scripting Adobe Photoshop CS2
- Viewing Photoshop CS2 objects, commands, and methods
- Creating new objects in a script
- Setting the active object
- Opening a document
- Saving a document
- Setting application preferences
- Suppressing dialog boxes
-
Working with the Adobe Photoshop CS2 Object Model
- Using the Application object
- Using the Document object
- Working with layer objects
- Creating an ArtLayer object
- Working with layer set objects
- Using the Text Item object
- Working with Selection objects
- Working with Channel objects
- Using the DocumentInfo object
- Using history state objects
- Using Notifier objects
- Using the PathItem object
- Working with color objects
- Working with filters
- Understanding clipboard interaction
- Working with units
- Sample workflow automation JavaScripts
- Advanced scripting
-
2. Scripting Basics
-
2. Photoshop JavaScript Reference
- 4. Using JavaScript with Adobe Photoshop CS2
-
5. JavaScript Object Reference
- Working with the Properties tables
- Working with the Methods tables
- ActionDescriptor
- ActionList
- ActionReference
- Application
- ArtLayer
- ArtLayers
- BatchOptions
- BitmapConversionOptions
- BMPSaveOptions
- CameraRawOpenOptions
- Channel
- Channels
- CMYKColor
- ContactSheetOptions
- DCS1_SaveOptions
- DCS2_SaveOptions
- Document
- DocumentInfo
- Documents
- EPSOpenOptions
- EPSSaveOptions
- ExportOptionsIllustrator
- ExportOptionsSaveForWeb
- GalleryBannerOptions
- GalleryCustomColorOptions
- GalleryImagesOptions
- GalleryOptions
- GallerySecurityOptions
- GalleryThumbnailOptions
- GIFSaveOptions
- GrayColor
- HistoryState
- HistoryStates
- HSBColor
- IndexedConversionOptions
- JPEGSaveOptions
- LabColor
- LayerComp
- LayerComps
- Layers
- LayerSet
- LayerSets
- LensBlurOptions
- NoColor
- Notifier
- Notifiers
- PathItem
- PathItems
- PathPoint
- PathPointInfo
- PathPoints
- PDFOpenOptions
- PDFSaveOptions
- PhotoCDOpenOptions
- PhotoshopSaveOptions
- PICTFileSaveOptions
- PICTResourceSaveOptions
- PicturePackageOptions
- PixarSaveOptions
- PNGSaveOptions
- Preferences
- PresentationOptions
- RawFormatOpenOptions
- RawSaveOptions
- RGBColor
- Selection
- SGIRGBSaveOptions
- SolidColor
- SubPathInfo
- SubPathItem
- SubPathItems
- TargaSaveOptions
- TextFont
- TextFonts
- TextItem
- TiffSaveOptions
- xmpMetadata
- 6. Action Manager
-
7. Using ScriptUI
- Overview
- ScriptUI Programming Model
- Resource specifications
- Defining behavior for controls with event callbacks
- Automatic layout
- Example scripts
- Localization in ScriptUI objects
- 8. ScriptUI Object Reference
- 9. Using File and Folder Objects
- 10. File and Folder Object Reference
- 11. Scripting Constants
-
12. ExtendScript Tools and Features
- The ExtendScript Toolkit
- Dollar ($) Object
- ExtendScript Reflection Interface
- Localizing ExtendScript Strings
- User Notification Helper Functions
- Specifying Measurement Values
- Modular Programming Support
- Operator Overloading
- Application and Namespace Specifiers
- Script Locations and Checking Application Installation
- A. Event ID Codes
Product information
- Title: Adobe® Photoshop® CS2 Official JavaScript Reference
- Author(s):
- Release date: October 2005
- Publisher(s): Adobe Press
- ISBN: 9780321409706
You might also like
book
Adobe® Illustrator® CS2 Official JavaScript Reference
Are you a creative professional? Do you spend too much time doing repetitive production tasks such …
book
JavaScript für Ungeduldige
JavaScript ist das Herzstück fast jeder modernen Webanwendung, von Social Media Apps wie Twitter bis hin …
book
PHP and MySQL®: Create-Modify-Reuse
Learn everything about the dynamic power of PHP and MySQL in real-world applications with the practical …
book
Designing SVG Web Graphics
Using a heavily illustrated, step-by-step style, Watt aims to ease designers into a more analytical, programming …