/* Slide Show Magic by PVII Copyright 2007 Project Seven Development. All rights reserved. --------------------------------------------------------------- www.projectseven.com --------------------------------------------------------------- PVII Slide Show Fireworks Optimization and Export Directives JSF Revision: C --------------------------------------------------------------- */ 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,115,105,116,101,115,47,119,101,97,118,105,110,103,47,103,97,108,108,101,114,105,101,115,47,112,55,115,115,109,95,105,109,103,95,49); var theSourceFolder=String.fromCharCode(102,105,108,101,58,47,47,47,68,124,47,100,111,99,115,95,68,95,100,114,105,118,101,47,109,121,114,97,47,119,101,97,118,105,110,103,47,116,97,112,101,115,116,114,121,32,111,110,32,119,97,108,108); 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:-640, 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=2; 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,121,114,97,87,111,114,107,115,48,48,48,57,46,74,80,71); theFullImage=String.fromCharCode(77,121,114,97,87,111,114,107,115,48,48,48,57,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,121,114,97,87,111,114,107,115,48,48,48,57,95,116,109,98,46,106,112,103); P7_processImage(); fw.progressCountCurrent=2; theSourceImage=String.fromCharCode(77,121,114,97,87,111,114,107,115,48,48,49,48,46,74,80,71); theFullImage=String.fromCharCode(77,121,114,97,87,111,114,107,115,48,48,49,48,95,102,115,46,106,112,103); theThumbImage=String.fromCharCode(77,121,114,97,87,111,114,107,115,48,48,49,48,95,116,109,98,46,106,112,103); P7_processImage();