10 Replies Latest reply on Oct 5, 2017 9:55 AM by clutch-cargo

    Export File as TIFF... no file saved

    clutch-cargo

      Could someone take a look at my script and see if you can get a file to be saved as a TIFF?  VBscript is my main language so maybe I missed something in JavaScript.  The script will run... I see an AI progress window open 'writing TIFF file", no error messages but then no file is saved?

       

      function test(){ 

       

           var doc = app.activeDocument; 

           var opts = new ExportOptionsTIFF();

           var destFile = new File("C:\TIFF Test\SOCAL_CN68_resx.tif");

           var type = ExportType.TIFF;

                opts.resolution=72;

                opts.imageColorSpace.Grayscale;

                opts.AntiAliasing=AntiAliasingMethod.ARTOPTIMIZED;

                opts.IZWCompression=false;

                opts.artboardRange="1";

           doc.exportFile(destFile, type, opts);

      test();