Photoshop CS Scripting Guide
36
Scripting Photoshop
Your first Photoshop script
3
3.3.2 Visual Basic
1. Start Visual Basic and create a new project. Add the “Adobe Photoshop CS Object Library”
reference to the project, as shown earlier. If you are using a built-in editor in a VBA
application, skip to step 4.
2. Add a form to the project.
3. Create a new button on the form. Double-click the button to open the Code window.
4. Below we revisit the "Hello, World!" Visual Basic script from Chapter 2, with comments
included. (We’ll expand on this example in the Advanced Scripting section that follows).