EDOBE XDOM EM Specifications Page 32

  • Download
  • Add to my manuals
  • Print
  • Page
    / 231
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 31
32
1
Introduction
This reference describes the objects and methods in the Adobe® Photoshop® CS6® JavaScript
TM
type
library. A companion document, Photoshop CS6 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 CS6 uses ExtendScript, Adobe’s extended implementation of JavaScript. See JavaScript
support in Adobe Photoshop CS6 for additional information.
This book contains the following sections:
This introduction, which describes scripting support in Adobe Photoshop CS6, and lists changes to the
JavaScript interface since the previous release.
JavaScript Object Reference, which provides a complete reference for all Photoshop DOM objects and
commands.
Scripting Constants, which lists all enumerations used in the Photoshop type library.
JavaScript support in Adobe Photoshop CS6
For a JavaScript file to be recognized by Photoshop as a valid script file, it must use either a .js or a .jsx
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
.js and .jsx
extension. However, if the script is launched by double-clicking on it, a script with the .js extension is
interpreted with the Microsoft JScript engine, and it cannot launch Adobe Photoshop CS6. For Windows,
using the
.jsx extension is preferrable, since it interprets the script with the ExtendScript engine.
All of the Adobe Creative Suite 6 applications, including Adobe Photoshop CS6, use ExtendScript, Adobe’s
extended implementation of JavaScript. ExtendScript files are distinguished by the
.jsx extension.
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
File object,
the
Folder object, and the UnitValue object. For that reason, using the .jsx extension for your script
files is preferable.
For details of these and additional features, see the JavaScript Tools Guide CS6. This document is installed
with Creative Suite 6 applications at these locations:
In Windows:
C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit CS6\SDK
Page view 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 230 231

Comments to this Manuals

No comments