9 Replies Latest reply on Feb 12, 2013 11:03 AM by Paul Riggott

    Can't export ColorMode or ICCProfile values

    gregreser Level 1

      I have had good luck exporting file metadata with JavaSCript so far, but there are two properties that keep returning "undefined"; photoshop:ColorMode and photoshop:ICCProfile.

      Other photoshop properties export just fine, but nothing I've tried works for these two. I thought it might be because they are "internal" properties, but I am able to export other "internal" properties, such as exif xResolution.

       

      var cm= xmpData.getProperty (XMPConst.NS_PHOTOSHOP, "ColorMode");

      if (cm !== undefined){

      dataExport.write ('\t' + cm);

      }

      else{

      dataExport.write ('\t');

       

       

      var icc= xmpData.getProperty (XMPConst.NS_PHOTOSHOP, "ICCProfile");

      if (icc !== undefined){

      dataExport.write ('\t' + icc);

      }

      else{

      dataExport.write ('\t');

      }

       

       

      Thanks,

       

      Greg Reser