Rename Tool in PowerSwitch - Can I do this?
Posted: Wed Feb 01, 2012 2:22 pm
In one of my flows, I'd like to add the "Die Number" after the the jobname.
Conveniently, the design department names the color used for the die with the die number. Example: foil x2299
If I make a path to [Stats.Colorants] the colorants are indexed with semi-colon separators. (leftside expression)
Can I add something like a reg-exp to the search to grab that entire name of the first instance colorant that includes the word "foil" and add it to the end of the filename.
So my file might read "AB12345-foil x2299"
I've been messing with this a bit but the reg-exps are new to me.
It would be easy if it always showed up as the 3rd colorant indexed but I don't want to count on that. [Stats.Colorants:Index=3]
Am I going at this the right way or do I need to explore the script route?
Thanks,
Mike
Conveniently, the design department names the color used for the die with the die number. Example: foil x2299
If I make a path to [Stats.Colorants] the colorants are indexed with semi-colon separators. (leftside expression)
Can I add something like a reg-exp to the search to grab that entire name of the first instance colorant that includes the word "foil" and add it to the end of the filename.
So my file might read "AB12345-foil x2299"
I've been messing with this a bit but the reg-exps are new to me.
It would be easy if it always showed up as the 3rd colorant indexed but I don't want to count on that. [Stats.Colorants:Index=3]
Am I going at this the right way or do I need to explore the script route?
Thanks,
Mike