3.4 Advanced Scripting
Having familiarized yourself with the basic "Hello, World!" script, you are now ready to move
on to more advanced scripting techniques such as configuring document preferences, applying
color to text items, and rasterizing text so that wrap an d blur processing can be applied to
words.
In this section, we describe sample code that takes you step-by-step through an extended script
to successively produce the output illustrated below.
1 Document Preferences
3 Applying a Wave Filter
3.4.1 Advanced JavaScript
The following JavaScript code sample is broken down into four sections, the first of which
deals with configuring document preferences.
N
O T E
Photoshop CS Scripting Guide
In JavaScript, the Photoshop Application object is already created for you behind the
:
scenes. You do not have to make an explicit object reference to it.
Scripting Photoshop
2 Displaying Colored Text
4 Applying a Blur Filter
3
Advanced Scripting
41