App.progressCountTotal = 4; App.progressCountCurrent = 0; fw.dismissBatchDialogWhenDone = true; doc = fw.openDocument('file:///Scratch HD/saca/ice/vimy/1.jpg'); App.progressCountCurrent = 1; App.batchStatusString = '1.jpg'; if (!Files.exists('file:///Scratch HD/clark website/ice/vimy/images/1_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/images/1_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/images/1_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:///Scratch HD/clark website/ice/vimy/thumbnails/1_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/thumbnails/1_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/thumbnails/1_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:-200, ySize:-200})); fw.closeDocument(doc); doc = fw.openDocument('file:///Scratch HD/saca/ice/vimy/2.jpg'); App.progressCountCurrent = 2; App.batchStatusString = '2.jpg'; if (!Files.exists('file:///Scratch HD/clark website/ice/vimy/images/2_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/images/2_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/images/2_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:///Scratch HD/clark website/ice/vimy/thumbnails/2_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/thumbnails/2_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/thumbnails/2_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:-200, ySize:-200})); fw.closeDocument(doc); doc = fw.openDocument('file:///Scratch HD/saca/ice/vimy/3.jpg'); App.progressCountCurrent = 3; App.batchStatusString = '3.jpg'; if (!Files.exists('file:///Scratch HD/clark website/ice/vimy/images/3_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/images/3_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/images/3_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:///Scratch HD/clark website/ice/vimy/thumbnails/3_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/thumbnails/3_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/thumbnails/3_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:-200, ySize:-200})); fw.closeDocument(doc); doc = fw.openDocument('file:///Scratch HD/saca/ice/vimy/4.jpg'); App.progressCountCurrent = 4; App.batchStatusString = '4.jpg'; if (!Files.exists('file:///Scratch HD/clark website/ice/vimy/images/4_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/images/4_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/images/4_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:///Scratch HD/clark website/ice/vimy/thumbnails/4_jpg.jpg') || confirm('file:///Scratch HD/clark website/ice/vimy/thumbnails/4_jpg.jpg already exists. Click OK to replace the file.')) fw.exportDocumentAs(doc, 'file:///Scratch HD/clark website/ice/vimy/thumbnails/4_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:-200, ySize:-200})); fw.closeDocument(doc); 'done';