2 Replies Latest reply on Jul 29, 2008 10:16 AM by (riruilo)

    Why docRef = open(fileObj,rawOpt); doesnot work?

      Hi!

      I'm trying to open a RAW file without header, so I want to say to Photoshop what dimensions I want. This is my idea:

      var filename = File.openDialog("RAW");
      if (filename) {
      var rawOpt = new CameraRAWOpenOptions();
      rawOpt.settings = CameraRAWSettingsType.CAMERA;
      var fileObj = new File(filename);
      rawOpt.bitsPerChannel = BitsPerChannelType.EIGHT;
      rawOpt.width=30;
      rawOpt.height=1000;
      rawOpt.channelNumber=3;
      docRef = open(fileObj,rawOpt);
      }

      But my Photoshop CS2 fails telling me that docRef = open(fileObj,rawOpt); is not implented.

      However if I use open(fileObj) it works, but it shows me a dialog to insert dimensions and I ddont like that.

      Any idea/suggestion?

      Thanks a lot for your time.