Dmiller35 Posted February 8, 2021 Share Posted February 8, 2021 Hello, I use FusionPro to create a lot of variable Business Cards. A lot of times these will be multiple lots with various quantites. I'm pretty sure I've seen a post that mentioned doing exactly what I need but now I can't find it. What I'd like to do is have the files output as: "Company_Bcard"_"nameoncard"_"today'sdate"_.pdf So using my own info it would be, "trevetts_bcard_Dan Miller_20200208.pdf" Is this possible? If so, is it possible to make this script active only when multiple output is selected? For example, we usually generate proofs before it goes to print. I'd like for the proof file to contain all records but then output to separate files when when they're ready to go to print. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted February 9, 2021 Share Posted February 9, 2021 In the New Rule dialog, under Event, select OnNewOutputFile, and do this: if (FusionPro.Composition.JobOptions["OutputSource"] != "onefile" && FusionPro.Composition.JobOptions["RecordsPerChunk"] == 1) { FusionPro.Composition.outputFileName = FusionPro.Composition.MakeValidFileName(Field("Company_Bcard") + "_" + Field("nameoncard") + "_" + FormatDate(Today(), "yyyyMMdd") + "." + (FusionPro.Composition.outputFormatExtension || "pdf")); } Quote Link to comment Share on other sites More sharing options...
Dmiller35 Posted February 10, 2021 Author Share Posted February 10, 2021 Thanks Dan. I actually did get it working after I posted here but I couldn't figure out the date. I got it to show, but it would include the entire date plus a time stamp even though I was adding "yyyyMMdd". But I just tried your code and it worked perfectly. Not totally sure what I was doing wrong. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.