1 Reply Latest reply on Apr 28, 2015 11:33 PM by BEGINNER_X

    invoke Backround Task

    BEGINNER_X Level 3

      Hi All,

       

      Request:

      While exporting PDF, I need to display the Backround Task.

       

      Screen Shot 2015-04-29 at 10.35.58 AM.png

       

      Tried the following things, but fails,

       

      t = app.activeDocument.asynchronousExportFile(ExportFormat.pdfType, File("~/Desktop/Test.pdf")); 

      t.waitForTask(); 

      alert("Task is done")

       

      Could you please provide your help to sort out the solution.

       

      Regards

      Siraj

        • 1. Re: invoke Backround Task
          BEGINNER_X Level 3

          Hi All,

           

          I got the output for invoke the Backround Task.

           

          But, the progress bar is not running inside the Backround Task.

           

          Have anyone face this kind of problems?

           

          Trying Code:

          app.scriptMenuActions.itemByID(91382).invoke(); 

           

          t = app.activeDocument.exportFile(ExportFormat.pdfType, File("~/Desktop/Test.pdf")); 

          alert("Task is done") 

           

          t = app.activeDocument.asynchronousExportFile(ExportFormat.pdfType, File("~/Desktop/Test.pdf")); 

          t.waitForTask(); 

          alert("Task is done") 

           

          Thanks in advance

          Siraj