% % quick arrangement of source images for product presentation fill % "XactSrcInprodR.jsx" ofdesk read "___xact___" _Xact replall "___Tard___" empty ofsnap 1 left replall "___ProdType___" _Shooter.ProdType replall "XactSrc" jsx!desk '//+Templar //* var doc; NeedP = false; NeedX = false; XactSrc(); var srcxp = SourcePath + "TacWvR_1876_vGaller"; ' % % stack: xactsrc-build % &'SourceImage = [ ' %%% *makeprex 8 countup { pop _Shooter.ProdType < |1 &' TargetPath + "Mq.jpg", ' |2 &' TargetPath + "Mt.jpg", ' |3 &' TargetPath + "Mk.jpg", ' |4 &' TargetPath + "Ms.jpg", ' |5 &' TargetPath + "Mj.jpg", ' |6 &' TargetPath + "Mp.jpg", ' |7 &' TargetPath + "Mm.jpg", ' |8 &' TargetPath + "Mr.jpg", ' > pop } for &" '' " &' ]; Template = srcxp + "y1.psd"; // any single product HostData("Template"); app.open(new File(Template)); OrigDoc(); Templax(selTem); /* Stdlib.resizeImage(WorkingDoc, OriginalDocWidth, OriginalDocHeight + 1, false, undefined); */ FlatClosed(WorkingDoc,TargetDocName+".jpg"); doc = app.activeDocument; doc.close(SaveOptions.DONOTSAVECHANGES); '