I am finally getting back to revisiting Photoshop Scripting. I beta tested with Photoshop CS and wrote tons of scripts. Things have changed in CS2 but for the better
New features in CS2 scripting:
- File Includes
- Self Contained Scriptlet (New File extension)
- Script Events
It is a one liner to include files in your CS2 script.
//Global contants or variables can be defined in another file.
//This line should go before any code that will execute methods.
// @include "YourFileToInclude.jsx"
The self contained scriptlet is also a one liner.
// This enables double clicking on the Mac OS or on Windows
// This line of code should be first if you want your script
// to be a self contained scriptlet
#target photoshop
The Scripting Events feature is not so much about coding but more about executing scripts when a given event happens within Photoshop CS2. Let’s say I always want a specific size of document, specific font selection, specific ruler units, and specific font color selected whenever I create a new document. I can write a script that will execute on CS2’s New Document Event. (That is another how to).
Nice tips there. Will come here more often