Adobe 23101764 - Photoshop CS - PC Manual page 38

Scripting guide
Hide thumbs Also See for 23101764 - Photoshop CS - PC:
Table of Contents

Advertisement

Scripting Photoshop
3
Viewing Photoshop objects, commands and methods
The singular advantage to writing JavaScripts is that the scripts run on any platform, regardless
of the underlying hardware or operating system.
JavaScript is consequently the language of choice for developers not wishing to lock
themselves into a single proprietary platform.
Use the text editor of your choice to create JavaScripts. To make scripts accessible to
Photoshop, drag-and-drop your files directly into the "Presets>Scripts" folder.
save JavaScripts here
Restart the Photoshop application to display JavaScripts in the Scripts menu.
The Scripts menu
The Scripts menu displays under the Photoshop File menu. When a Scripts item is selected,
a dialog is presented from which you can select a JavaScript for execution.
JavaScripts display here
A collection of JavaScripts comes pre-installed with Photoshop. These scripts display
alongside the Scripts menu, as illustrated above.
You can use these scripts "out-of-the-box" or create your own. Use the "Browse" option to
locate scripts you've created in other directories or to find scripts that reside on a network.
On both Mac and Windows, a JavaScript file must be saved as a text file with a '.js' file name
extension.
Click a script to execute it. If there is an error encountered during script execution, an error
dialog will be displayed containing the error message returned by the script.
34
Photoshop CS Scripting Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs

Table of Contents