2 Replies Latest reply on Sep 30, 2008 1:36 AM by (KGuna)

    How to open a menu option in IndesignCS3

      IS there any possible way to open a menu option in IndesignCS3 to use the cross-media Export & its sub option xhtml/Digital Edition
        • 1. Re: How to open a menu option in IndesignCS3
          (sudar1983) Level 1
          Hi Guna,

          There is option for invoking those menus. so use this script for export as html.

          app.scriptPreferences.version = 5.0;
          var outputFile = File('/c/test/test.html');

          var document = app.activeDocument;

          var scriptPath = Folder.startup + '/Scripts/Export as XHTML/';
          var scriptFile = File(scriptPath + 'XHTMLExport.jsxbin');
          if (scriptFile.exists) {
          scriptFile.open();
          var script = scriptFile.read();
          scriptFile.close();
          eval(script);

          var opts = new XHTMLExportOptions();

          opts.styleHandling = XHTMLExportOptions.extStyleSheet;
          opts.styleSheet = 'template.css';

          opts.formatted = true;

          app.exportForWebPreferences.gifOptionsInterlaced = true;

          var exporter = new XHTMLExporter(scriptFile);

          var success = exporter.doExport(document, undefined, opts, outputFile); // check the results:
          if(success)
          {
          /*if(exporter.outOfDateLinks.length > 0)
          {
          alert('Exporting ' + document.name + ' succeeded\nHowever ' + exporter.outOfDateLinks.length + ' links were out of date.');
          } */
          }
          else
          {
          alert('Exporting ' + document.name + ' failed with this error message:\n' + exporter.error.message);
          }
          }
          • 2. Re: How to open a menu option in IndesignCS3
            Level 1
            Thanks sundar1983 for ur reply......
            but i need to convert indesidg file to .epub file by using javascript.