Using Variables in Target File Names

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
Haz
Propeller Head
Posts: 16
Joined: Thu Nov 20, 2014 3:01 am

Using Variables in Target File Names

Post by Haz »

I'm pretty new to Flare so excuse if this is glaringly obvious. I want to use the value of a variable as part of the output file name. Specifically, I have a variable for the document revision that I want to include in the output file name, e.g. ThisUserGuide-<VersionNumnber>.pdf. Is it possible?
Paulie
Sr. Propeller Head
Posts: 140
Joined: Sun Mar 01, 2015 3:01 pm

Re: Using Variables in Target File Names

Post by Paulie »

In TOCs you can enter variables in the following format, but unfortunately this does not work for file names:

Code: Select all

Welcome to version [%=MyVariableSet.MyVersionNumber%]


Our workaround is to add 'VVV' to the end of our file names, then run a script to swap this placeholder text with the version number after our overnight build completes.
"In an ideal world, software should be simple, well designed, and completely intuitive to end users. In the real world, good documentation is king."
Haz
Propeller Head
Posts: 16
Joined: Thu Nov 20, 2014 3:01 am

Re: Using Variables in Target File Names

Post by Haz »

Thanks Paulie. The workaround sounds like a good plan.

Cheers
Haz
dorcutt
Sr. Propeller Head
Posts: 234
Joined: Thu May 15, 2014 12:16 pm

Re: Using Variables in Target File Names

Post by dorcutt »

Wow, the fact that [%=MyVariableSet.MyVariable%] works is a godsend. My TOCs just became much happier. Thanks for sharing that tip!
-Dan, Propellerhead-in-training
Post Reply