Photoshop CS Scripting Guide
30
Scripting basics
What’s Next
2
JS
try
{
for (i = 0; i < app.documents.length; ++i)
{
var myName = app.documents[i].name;
alert(myName);
}
}
catch(someError)
{
alert( "JavaScript error occurred. Message = " +
someError.description);
}
2.11 What’s Next
The next chapter covers Photoshop-specific objects and components and describes advanced
techniques for scripting the Photoshop application. The "Hello, World!" example is entended
to include text filtering and document selection.