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
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).
Gabe Holley (the son of my best friend) was diagnosed with Leukemia on July 16, 2005. Gabe turned 7 this year and I have not actually met him. I met him while he was still in his mother’s tummy and that seems like a lifetime ago. I have seen pictures and heard how great he is from his father. I am very sorry he is sick and wish him well. Please leave any supportive comments on Gabe’s website.
I can’t believe I have had my blog up for 3 years?!?!!
I still don’t have my static content in place. I have to fill in the About section with a small bio. I have to complete my links section ( I have tons of links from the past nine years). I also need to add a contact form and resume. I have been bogged down with helping other people. I think it is time to help myself a little bit. I am finishing these areas before October ’05. You mark my words…
If you want to help me out just keep sending email every couple days as a reminder.
I turned 35 today and said to myself “How did I get here?”. That question alone spawned many other questions and then memories of where I have been. I don’t think I am the ordinary 35 year old. Or at least I wasn’t the ordinary kid growing up in small town U.S.A. I have lived in 12 states and move 22 times in my life.
States Ken Villines has lived (in order):
- New Jersey
- Indiana (2 moves)*
- West Virginia
- Tennesee (2 moves)*
- Arkansas (3 moves)*
- Missouri (2 moves)*
- Connecticut (3 moves)*
- Massachusetts(3 moves)*
- * this total includes the original move to the state
While growing up my social skills had to adapt to fitting in very quickly. Children can be cruel especially to outsiders. I gained skills other people didn’t have and knew how to get people to like me. If I had a list of the people I have touched in my life it would probably fill a room. This is going to be the first entry in the Chronology of Ken Villines. I really need to find trace where I have been and where this life has taken me. Keep checking back if you are interested.
I am happy to say my new comment template is finished. It took me all day yesterday…argh! I kept running into CSS issues, but then again I was trying to watch sports all day too. I will post something a little more meaningful later but for now click and make a comment
BTW: I have only tested the new templates in safari, firefox, Mozilla, and camino on Mac OS X. I fully expect to be making CSS tweaks later.