Executing Scripts; Introduction; Javascript Support In Adobe Photoshop Cs3 - Adobe 19400084 - Photoshop CS3 Extended Manual

Javascript scripting reference
Table of Contents

Advertisement

1

Introduction

This reference describes the objects and methods in the Adobe® Photoshop® CS® 3 JavaScript
library. A companion document, Photoshop CS3 Scripting Guide, describes basic scripting concepts and the
Photoshop object model. This document provides reference details of the Photoshop object model, and
additional information on JavaScript-specific features.
Adobe Photoshop CS3 uses ExtendScript, Adobe's extended implementation of JavaScript. See
support in Adobe Photoshop CS3
This book contains the following sections:
This introduction, which describes scripting support in Adobe Photoshop CS3, and lists changes to the
JavaScript interface since the previous release.
JavaScript Object
commands.
Scripting

JavaScript support in Adobe Photoshop CS3

For a JavaScript file to be recognized by Photoshop as a valid script file, it must use either a
extension.
On the Mac OS, there is no difference in the way scripts with the two extensions function. On Windows, if
the script files is opened from inside Photoshop, there is no difference between using the
extension. However, if the script is launched by double-clicking on it, a script with the
interpreted with the Microsoft JScript engine, and it cannot launch Adobe Photoshop CS3. For Windows,
using the
All of the Adobe Creative Suite 3 applications, including Adobe Photoshop CS3, use ExtendScript, Adobe's
extended implementation of JavaScript. ExtendScript files are distinguished by the
ExtendScript offers all standard JavaScript features, plus additional features and utilities, such as:
A debugging environment (the ExtendScript Toolkit)
A localization utility
Tools that allow you to combine scripts and direct them to particular applications
Platform-independent file and folder representation
Many of the JavaScript objects and methods use objects defined in ExtendScript, such as the
the
Folder
files is preferable. For details of these and additional features, see the JavaScript Tools Guide CS3.

Executing scripts

The Adobe Photoshop CS3 interface includes a Scripts menu (File > Scripts) which provides quick and
easy access to your JavaScripts. Scripts can be listed directly as menu items that run when you select them,
or you can navigate to and run any JavaScript in your file system.
Reference, which provides a complete reference for all Photoshop DOM objects and
Constants, which lists all enumerations used in the Photoshop type library.
extension is preferrable, since it interprets the script with the ExtendScript engine.
.jsx
object, and the
UnitValue
for additional information.
object. For that reason, using the
TM
JavaScript
.js
and
.js
extension is
.js
extension.
.jsx
File
extension for your script
.jsx
type
or a
.jsx
.jsx
object,
31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs3

Table of Contents