1 Reply Latest reply on Oct 5, 2010 8:55 AM by Michael L Hale

    Error: Enumerated value expected

    worldveil4

      part of my code:

       

      var height = 1000.000;
      var width = 1000.000;
      var anchor = "MIDDLECENTER";
      app.activeDocument.resizeCanvas(width, height, anchor);

       

      I'm getting an error on the third line (var anchor ...) and ExtendScript says:

       

      "Error at line 47; Error: Illegal argument - argument 3

      - Enumerated value expected

      Execution finished."

       

      Any ideas on what I'm doing wrong? I couldn't really find a listing of ExtendScript errors and what they mean.

       

      Thanks!