How can I create and use a Javascript class in a PhotoShop script?
I am working on a PhotoShop script that will add a frame around my photograph. There are quite a few parameters I want the user to enter before the frame is generated (frame width, title size, title position, etc.). I have the dialog set up the way I want it, but I realized that it would make my life quite a bit easier if it was wrapped inside a class. So, I tried to begin by creating an empty class:
class FrameDialog
{
}
And then, in my main script file, the first line is:
#include "FrameDialog.js"
When I run the main script file, I get an error saying "Invalid use of reserved word class".
Can I use classes in PhotoShop scripts? Can I include them from other files? If so, how?
Thanks very much.
