It's in the Mac block also. Both call doScript, and that is right, Photoshop doesn't have the method. Unfortunately there isn't a direct equivalent. I'll have to think about a way around it. Can't think of a way off the top of my head, but usually something will come to me eventually. Anyhow, it will be on my mind and I'll respond if any bright idea reveals itself. Regarding when to use the new keyword, do so whenever you want a new object. A new instance of the class. For example, if calling the static method "decode" of the File class, that wouldn't be a time to use the new keyword. You're not making an object. You're just calling a static utility method of the class. On the other hand, a script can have multiple File objects -- a source file, destination, a copy, a settings file, all sorts of file objects. Each needs a unique object. That's when to use the new keyword. Makes a new instance of the class. A new object.
... View more