4 Replies Latest reply on Apr 4, 2017 6:40 AM by Laubender

    Startup script to load csf file

    allwayslearning

      Hi everyone

       

      I need a little help from the experts eheheh

       

      I want to load a csf file on the Indesign CS4 startup.

       

      I found this script on the forum:

       

      var myPath = "\\\\xxxxxx\\prepress\\Recursos\\ColorSettings\\Photoshop_Illustrator\\publicidade.csf";
      var myFile = new File (myPath);
      if (myFile.exists) {
          app.colorSettings.cmsSettingsPath = myFile;
      }
      else {
          alert("O ficheiro \""+ myPath + "\" error.");


      }

       

      this wok fine but if colour settings are set to "Emulate ADobe Indesign 2.0 CMS Off" I get this message:

      untitled.JPG

       

      How can I avoid this?

       

      Thanks in advance

       

      Ricardo