/* Lightshow Magic by PVII Copyright 2008 Project Seven Development. All rights reserved. --------------------------------------------------------------- www.projectseven.com --------------------------------------------------------------- PVII Lightshow Fireworks Optimization and Export Directives JSF Version: 1.0 --------------------------------------------------------------- */ var thePath,theFPath,theTPath,theDoc,i=0,mS='',runIt=true,tPrompt=false; var theSourceImage,theFullImage,theThumbImage; var theDestPath=String.fromCharCode(102,105,108,101,58,47,47,47,68,124,47,85,115,101,114,115,47,76,97,114,101,121,32,77,99,68,97,110,105,101,108,47,68,111,99,117,109,101,110,116,115,47,77,121,32,87,101,98,115,47,80,97,114,107,108,97,110,101,32,71,97,108,108,101,114,121,47,110,101,119,115,108,101,116,116,101,114); var theSourceFolder=String.fromCharCode(102,105,108,101,58,47,47,47,68,124,47,85,115,101,114,115,47,76,97,114,101,121,32,77,99,68,97,110,105,101,108,47,68,111,99,117,109,101,110,116,115,47,77,121,32,87,101,98,115,47,80,97,114,107,108,97,110,101,32,71,97,108,108,101,114,121,47,103,97,108,108,101,114,121); var fullOpt=({colorMode:"24 bit", exportFormat:"JPEG", jpegQuality:80, jpegSmoothness:0, jpegSubsampling:0, name:"JPEG - Better Quality", numEntriesRequested:256, applyScale:true, percentScale:100, useScale:false, xSize:-700, ySize:-700 }); var thumbOpt=({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.progressCountTotal=11; fw.progressCountCurrent=0; fw.dismissBatchDialogWhenDone=true; function checkContinueProcess(im){ runIt=fw.yesNoDialog('FW could not open image source file:\n'+im+'\n\nDo you wish to continue processing the remaining images?'); } function checkFileWrite(tP,tY){ var retVal=true; if(tPrompt){ if(Files.exists(tP)){ if(!fw.yesNoDialog('The '+tY+' image file:\n\n'+tP+'\n\nalready exists. Do you wish to replace the file?')){ retVal=false; } } } return retVal; } function P7_processImage(){ fw.batchStatusString=theSourceImage; thePath=theSourceFolder+'/'+theSourceImage; theDoc=fw.openDocument(thePath); if(theDoc&&runIt){ if(theFullImage!='none'){ theFPath=theDestPath+'/fullsize/'+theFullImage; if(checkFileWrite(theFPath,'Full Size')){ fw.exportDocumentAs(theDoc,theFPath,fullOpt); } } theTPath=theDestPath+'/thumbs/'+theThumbImage; if(checkFileWrite(theTPath,'Thumnail')){ fw.exportDocumentAs(theDoc,theTPath,thumbOpt); } fw.closeDocument(theDoc,false); }else{ checkContinueProcess(thePath); } } fw.progressCountCurrent=1; theSourceImage=String.fromCharCode(68,97,118,105,100,32,86,97,114,110,97,117,32,45,32,73,108,32,86,101,99,99,104,105,111,46,106,112,103); theFullImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,45,95,73,108,95,86,101,99,99,104,105,111,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,45,95,73,108,95,86,101,99,99,104,105,111,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=2; theSourceImage=String.fromCharCode(68,97,118,105,100,32,86,97,114,110,97,117,32,45,32,87,97,116,101,114,100,97,110,99,101,114,115,46,106,112,103); theFullImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,45,95,87,97,116,101,114,100,97,110,99,101,114,115,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,45,95,87,97,116,101,114,100,97,110,99,101,114,115,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=3; theSourceImage=String.fromCharCode(68,97,118,105,100,32,86,97,114,110,97,117,32,45,32,87,105,110,100,32,68,97,110,99,101,114,115,46,106,112,103); theFullImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,45,95,87,105,110,100,95,68,97,110,99,101,114,115,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,45,95,87,105,110,100,95,68,97,110,99,101,114,115,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=4; theSourceImage=String.fromCharCode(68,97,118,105,100,32,86,97,114,110,97,117,32,65,117,114,111,114,97,46,106,112,103); theFullImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,65,117,114,111,114,97,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(68,97,118,105,100,95,86,97,114,110,97,117,95,65,117,114,111,114,97,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=5; theSourceImage=String.fromCharCode(72,105,108,100,97,32,66,111,114,100,105,97,110,117,32,45,32,71,111,108,100,101,110,32,68,117,115,107,46,106,112,103); theFullImage=String.fromCharCode(72,105,108,100,97,95,66,111,114,100,105,97,110,117,95,45,95,71,111,108,100,101,110,95,68,117,115,107,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(72,105,108,100,97,95,66,111,114,100,105,97,110,117,95,45,95,71,111,108,100,101,110,95,68,117,115,107,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=6; theSourceImage=String.fromCharCode(72,105,108,100,97,32,66,111,114,100,105,97,110,117,32,45,32,83,117,110,115,101,116,32,111,110,32,116,104,101,32,76,97,107,101,46,106,112,103); theFullImage=String.fromCharCode(72,105,108,100,97,95,66,111,114,100,105,97,110,117,95,45,95,83,117,110,115,101,116,95,111,110,95,116,104,101,95,76,97,107,101,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(72,105,108,100,97,95,66,111,114,100,105,97,110,117,95,45,95,83,117,110,115,101,116,95,111,110,95,116,104,101,95,76,97,107,101,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=7; theSourceImage=String.fromCharCode(72,105,108,100,97,32,66,111,114,100,105,97,110,117,32,45,32,84,114,97,110,113,117,105,108,105,116,121,46,106,112,103); theFullImage=String.fromCharCode(72,105,108,100,97,95,66,111,114,100,105,97,110,117,95,45,95,84,114,97,110,113,117,105,108,105,116,121,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(72,105,108,100,97,95,66,111,114,100,105,97,110,117,95,45,95,84,114,97,110,113,117,105,108,105,116,121,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=8; theSourceImage=String.fromCharCode(82,111,98,32,84,105,108,108,101,121,32,45,32,66,97,109,98,111,111,32,71,97,114,100,101,110,46,106,112,103); theFullImage=String.fromCharCode(82,111,98,95,84,105,108,108,101,121,95,45,95,66,97,109,98,111,111,95,71,97,114,100,101,110,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(82,111,98,95,84,105,108,108,101,121,95,45,95,66,97,109,98,111,111,95,71,97,114,100,101,110,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=9; theSourceImage=String.fromCharCode(82,111,98,32,84,105,108,108,101,121,32,45,32,75,97,114,97,111,107,101,32,78,101,111,110,46,106,112,103); theFullImage=String.fromCharCode(82,111,98,95,84,105,108,108,101,121,95,45,95,75,97,114,97,111,107,101,95,78,101,111,110,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(82,111,98,95,84,105,108,108,101,121,95,45,95,75,97,114,97,111,107,101,95,78,101,111,110,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=10; theSourceImage=String.fromCharCode(82,111,98,32,84,105,108,108,101,121,32,45,32,83,104,105,110,116,111,32,80,114,105,101,115,116,46,106,112,103); theFullImage=String.fromCharCode(82,111,98,95,84,105,108,108,101,121,95,45,95,83,104,105,110,116,111,95,80,114,105,101,115,116,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(82,111,98,95,84,105,108,108,101,121,95,45,95,83,104,105,110,116,111,95,80,114,105,101,115,116,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=11; theSourceImage=String.fromCharCode(115,97,108,111,110,46,106,112,103); theFullImage=String.fromCharCode(115,97,108,111,110,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(115,97,108,111,110,95,116,109,98,46,106,112,103); P7_processImage();