Setting Scripts and Actions to Run Automatically


I recently wrote a feature article for Photoshop User magazine (Jan/Feb 2006) on the Script Events Manager. In doing so, I really realized the power that this new CS2 feature holds. Imagine that every time you created a new image in Photoshop, you could automatically have your copyright information attached to it. That would be a great insurance policy in case you ever forgot to add it later, wouldn't it? You can do just that with the Script Events Manager.

Step One

Create a new blank file or open any image to start with. Honestly, it doesn't really matter how you start as long as you have a document open. I just figured I'd take any chance to show a photo of my lovely wife, Diana. After that, open the Actions palette and click the Create New Action icon to create a new action called Add Copyright Info. Click Record to start recording.

Step Two

Choose File>File Info. Add any copyright information that you want associated with every new image you create in Photoshop. Click OK when you're done to save the file info. Then, click the Stop Recording icon to end the action.

Turbo Boost

When using the Script Events Manager, you can disable and remove individual script events by selecting the event from the list and pressing the Remove button.


Step Three

Now that the action is recorded, you'll have to create a script event that runs it after you create a new document. Choose File>Scripts>Script Events Manager. Turn on the Enable Events to Run Scripts/Actions checkbox.

Step Four

For Photoshop Event, choose New Document from the pop-up menu. Click the Action radio button at the bottom of the dialog, and choose the Add Copyright Info action you just created from the list on the right. Click the Add button and close the dialog by clicking Done.

Step Five

Create a new document again. You probably won't see anything happenbecause it happens so fastbut the Add Copyright Info action runs as soon as you click OK to create the new document. If you choose File>File Info, you will indeed see the copyright information you added in Step Two. As you can see, Photoshop did this automatically and will continue to do it each time you create a new document.

Turbo Boost

In the Script Events Manager, you can disable script events but still keep them in the list by turning off the Enable Events to Run Scripts/Actions checkbox. They'll still be in the list but they won't run anymore.


Keep in mind that this script event is tied to the action you created earlier. If you delete or change this action, then you're changing the action that the script event uses, too.


Step Six

If you ever want to remove a script event, then continue reading. Choose File>Scripts>Script Events Manager. Click once on the script event in the list and click the Remove button. Click Done and the script event will no longer run every time you create a new document.

Turbo Boost

In the Script Events Manager dialog, choose Add an Event from the Photoshop Event pop-up menu. Then look in Appendix A of the JavaScript Reference Guide (in Photoshop CS2's Scripting Guide folder) for ideas on which events you can add.




Photoshop CS2 Speed Clinic
The Photoshop CS2 Speed Clinic: Automating Photoshop to Get Twice the Work Done in Half the Time
ISBN: 0321441656
EAN: 2147483647
Year: 2006
Pages: 113

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net