App.progressCountTotal = 1; App.progressCountCurrent = 0; fw.dismissBatchDialogWhenDone = true; doc = fw.openDocument('file://///Web/E/wave-report/photopages/comp-history/Analog/aDSC_8523 - crop.jpg'); App.progressCountCurrent = 1; App.batchStatusString = 'aDSC_8523 - crop.jpg'; if (!Files.exists('file://///Web/E/wave-report/photopages/comp-history/Analog/images/aDSC_8523 - crop_jpg.jpg') || confirm('file://///Web/E/wave-report/photopages/comp-history/Analog/images/aDSC_8523 - crop_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file://///Web/E/wave-report/photopages/comp-history/Analog/images/aDSC_8523 - crop_jpg.jpg',{applyScale:false, colorMode:"24 bit", exportFormat:"JPEG", jpegQuality:80, jpegSmoothness:0, jpegSubsampling:0, name:"JPEG - Better Quality", numEntriesRequested:0, percentScale:"100", useScale:true, xSize:0, ySize:0}); if (!Files.exists('file://///Web/E/wave-report/photopages/comp-history/Analog/thumbnails/aDSC_8523 - crop_jpg.jpg') || confirm('file://///Web/E/wave-report/photopages/comp-history/Analog/thumbnails/aDSC_8523 - crop_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file://///Web/E/wave-report/photopages/comp-history/Analog/thumbnails/aDSC_8523 - crop_jpg.jpg',{applyScale:true, colorMode:"24 bit", exportFormat:"JPEG", jpegQuality:80, jpegSmoothness:0, jpegSubsampling:0, name:"JPEG - Better Quality", numEntriesRequested:0, percentScale:100, useScale:false, xSize:-100, ySize:-100}); fw.closeDocument(doc); 'done';