13 Replies Latest reply on Dec 17, 2015 5:24 AM by natrev

    stringIDToTypeID('workingCMYK') Statement not working in CC 2015

    natrev Level 3

      Hi Everyone!

       

      stringIDToTypeID('workingCMYK') Statement not working in CC 2015.

      (Thanks to Chris for this code)

      var ref = new ActionReference();
      ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
      var appDesc = executeActionGet(ref);
      var descColorSettings = appDesc.getObjectValue(stringIDToTypeID( "colorSettings" ));
      var rgbProfile = descColorSettings.getString(stringIDToTypeID("workingRGB"));
      var cmykProfile = descColorSettings.getString(stringIDToTypeID("workingCMYK"));
      alert(rgbProfile+"\n"+cmykProfile);
      

       

      anyone explain why and tell me the alternate statement...

       

      Screen Shot 2015-12-16 at 1.01.51 pm.png

       

      -yajiv