Category Archives: graphics

Getting Started with Photoshop CS2 Scripting

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).

FreeHand vs. Illustrator

I am currently sitting at my café style table having a morning latté with my wife. I just opened the latest issue of Macworld magazine (11/03) and started reading the “Feedback” section. I finished reading one called “Free to Be Dissatisfied” where the reader is complaining about a Studio MX review that didn’t include much info about Freehand MX. I am taking this opportunity to answer one of the questions that came out of this readers rant:

Adobe Illustrator has no similar importing and exporting capability for FreeHand – is that a con, too?
Continue reading