/* 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,97,114,116,105,115,116,115); 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:-600, ySize:-600 }); 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:-100, ySize:-100}); fw.progressCountTotal=12; 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(77,97,114,105,97,32,71,111,99,104,32,45,32,66,97,108,108,101,116,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,66,97,108,108,101,116,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,66,97,108,108,101,116,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=2; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,67,97,115,116,108,101,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,67,97,115,116,108,101,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,67,97,115,116,108,101,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=3; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,68,97,110,99,105,110,103,32,87,111,109,97,110,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,68,97,110,99,105,110,103,95,87,111,109,97,110,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,68,97,110,99,105,110,103,95,87,111,109,97,110,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=4; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,68,117,101,116,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,68,117,101,116,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,68,117,101,116,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=5; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,70,108,111,119,101,114,115,32,73,73,73,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,70,108,111,119,101,114,115,95,73,73,73,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,70,108,111,119,101,114,115,95,73,73,73,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=6; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,77,97,100,111,110,110,97,32,97,110,100,32,67,104,105,108,100,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,77,97,100,111,110,110,97,95,97,110,100,95,67,104,105,108,100,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,77,97,100,111,110,110,97,95,97,110,100,95,67,104,105,108,100,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=7; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,77,117,115,105,99,32,76,101,115,115,111,110,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,77,117,115,105,99,95,76,101,115,115,111,110,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,77,117,115,105,99,95,76,101,115,115,111,110,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=8; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,84,104,101,32,66,101,97,116,108,101,115,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,84,104,101,95,66,101,97,116,108,101,115,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,84,104,101,95,66,101,97,116,108,101,115,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=9; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,32,45,32,89,101,108,108,111,119,32,66,105,114,100,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,89,101,108,108,111,119,95,66,105,114,100,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,95,45,95,89,101,108,108,111,119,95,66,105,114,100,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=10; theSourceImage=String.fromCharCode(77,97,114,105,97,32,71,111,99,104,45,69,108,98,101,32,82,105,118,101,114,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,45,69,108,98,101,95,82,105,118,101,114,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,97,95,71,111,99,104,45,69,108,98,101,95,82,105,118,101,114,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=11; theSourceImage=String.fromCharCode(77,97,114,105,99,97,32,71,111,99,104,32,45,32,71,111,100,39,115,32,70,105,110,103,101,114,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,99,97,95,71,111,99,104,95,45,95,71,111,100,39,115,95,70,105,110,103,101,114,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,99,97,95,71,111,99,104,95,45,95,71,111,100,39,115,95,70,105,110,103,101,114,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=12; theSourceImage=String.fromCharCode(77,97,114,105,101,32,71,111,99,104,32,45,32,74,105,109,105,32,72,101,110,100,114,105,120,46,106,112,103); theFullImage=String.fromCharCode(77,97,114,105,101,95,71,111,99,104,95,45,95,74,105,109,105,95,72,101,110,100,114,105,120,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,97,114,105,101,95,71,111,99,104,95,45,95,74,105,109,105,95,72,101,110,100,114,105,120,95,116,109,98,46,106,112,103); P7_processImage();