5 Replies Latest reply on Oct 6, 2017 12:31 PM by SuperMerlin

    Accessing constants in photoshop scripting

    manonui

      Hi,

       

      I'm writing a VBScript to initialize a document like so

       

      Set docRef = appRef.Documents.Add(width, height, 72, "exportedLayer", PsNewDocumentMode.psNewRGB, PsDocumentFill.psTransparent)

       

      But I can't seem to access the constants

       

      PsNewDocumentMode.psNewRGB

      PsDocumentFill.psTransparent

       

      What am I doing wrong?  I get the error message 'Object required', but I'm not sure which object is needed.  I'm very new to this so any help would be greatly appreciated.