0 Replies Latest reply: Oct 17, 2014 5:06 AM by DaHuuudge RSS

    FlashExportToJepg sample script not working

    DaHuuudge Community Member

      I need to produce screenshots of swf files. I'm having no luck getting the FlashExportToJepg script, included in the Adobe Bridge CS6 SDK, working. It doesn't error, it just doesn't produce the jpeg.


      I wrote this short script to try to identify the problem. It produces a jpeg from the preview when an image is selected – but not for a swf.

       

      var bitmap=app.document.selections[0].core.preview.preview;

      var path=returnPath(app.document.selections[0].path,1)+"/test.jpg";

      bitmap.exportTo(path);

       

      function returnPath(dFn,nu){

          var pA= dFn.split("/");

          for (n=0;n<nu;n++){

          pA.pop();

          }

          rP=pA.join();

          rP=rP.replace(/,/g,'/');

          return rP;

          }

       

      I am running Bridge CC on a Mac osX 10.9