O'Reilly logo

Power, Speed & Automation with Adobe Photoshop by Jeffrey Tranberry, Geoff Scott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

NineCUSTOMIZINGPhotoshop-Created Scripts

Beyond the Photoshop DOM with the ScriptingListener Plug-in

Coding Concepts: Functions and Arguments

Functions were introduced in the preceding chapter as the verbs in your scripting Mad Libs. Like verbs, functions do things. They imply action and functionality. Your scripts have included a few functions. As your scripts started using the Photoshop Document Object Model (DOM), they included methods, which is what functions defined on objects are called. Functions are very useful, and the best thing about them is that you can build your own.

Understanding Function Details

As previously described, three ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required