Photoshop Scripting Basics; Scripting Overview; Why Use Scripts Instead Of Actions - Adobe 65048332 Manual

Scripting guide
Table of Contents

Advertisement

2

Photoshop Scripting Basics

This chapter provides an overview of scripting for Photoshop, describes scripting support for the scripting
languages AppleScript, VBScript, and JavaScript, how to execute scripts, and covers the Photoshop object
model. It provides a simple example of how to write your first Photoshop script.
If you are familiar with scripting or programming languages, you most likely will want to skip much of this
chapter. Use the following list to locate information that is most relevant to you.
For more information on the Photoshop object model, see
For information on selecting a scripting language, refer to the Introduction to Scripting guide.
For examples of scripts created specifically for use with Photoshop, see Chapter 3,
Photoshop" on page
For detailed information on Photoshop objects and commands, please use the reference information
in the three reference manuals provided with this installation: Adobe Photoshop CS5 AppleScript
Scripting Reference, Adobe Photoshop CS5 Visual Basic Scripting Reference, and Adobe Photoshop CS5
JavaScript Scripting Reference.
N
: You can also view information about the Photoshop objects and commands through the object
OTE
browsers for each of the three scripting languages. See
Methods" on page

Scripting Overview

A script is a series of commands that tells Photoshop to perform a set of specified actions, such as applying
different filters to selections in an open document. These actions can be simple and affect only a single
object, or they can be complex and affect many objects in a Photoshop document. The actions can call
Photoshop alone or invoke other applications.
Scripts automate repetitive tasks and are often used as a creative tool to streamline tasks that might be too
time consuming to do manually. For example, you could write a script to generate a number of localized
versions of a particular image or to gather information about the various color profiles used by a collection
of images.
If you are new to scripting, you should acquaint yourself with the basic scripting information provided in
the Introduction to Scripting manual.

Why use scripts instead of actions?

If you've used Photoshop Actions, you're already familiar with the enormous benefits of automating
repetitive tasks. Scripting allows you to extend those benefits by allowing you to add functionality that is
not available for Photoshop Actions. For example, you can do the following with scripts and not with
actions:
You can add conditional logic, so that the script automatically makes "decisions" based on the current
situation. For example, you could write a script that decides which color border to add depending on
21.
21.
"Photoshop Object Model" on page
"Viewing Photoshop Objects, Commands, and
11.
"Scripting
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

65048599Photoshop cs5

Table of Contents