Same GUID to 2 different files types with same filename
Posted: Wed Jan 16, 2019 4:33 pm
Hi,
I'm trying to setup my first workflow in FFAStrans which will take in via watch folder:
Filename_1.wav
Filename_1.xml
It needs to process just the WAV file, convert it to MP3 (plus loudness) and put in a drop folder with a GUID appended to filename as Filename_1_GUID.wav
It also needs to process the XML file with the same filename and rename it to the Filename_1_GUID.xml
The GUIDs stamped to both files need to be the same, as the file names must match for further processing down the line by another application.
I've tried a few different ways of doing this, particularly by generating a GUID, storing it to a user variable, and trying to use that variable for both files via either two watch folders with the second watch folder filtered to accept only .XML files with the source file name without extension of the first .WAV file, or conditional statements "if .XML then" and "if .wav then" and then generating the variable after if WAV file and referencing that to both the "if XML" and the output folder blocks. However both methods result in the XML file with a file name that is literally "Filename_1_%s_guid%.xml". As in it's not putting in the stored variable, just the literal variable itself.
Here is the results of the output folder:
Any ideas a simple way to do this seemingly simple task?
Here's a pic of how I tried (but failed) to apply the variable. I originally applied the set variable output just to two places, but started hitting multiple places as it kept not working.
I seem to be missing how to get the variable to be applied properly.
Thanks everyone!
I'm trying to setup my first workflow in FFAStrans which will take in via watch folder:
Filename_1.wav
Filename_1.xml
It needs to process just the WAV file, convert it to MP3 (plus loudness) and put in a drop folder with a GUID appended to filename as Filename_1_GUID.wav
It also needs to process the XML file with the same filename and rename it to the Filename_1_GUID.xml
The GUIDs stamped to both files need to be the same, as the file names must match for further processing down the line by another application.
I've tried a few different ways of doing this, particularly by generating a GUID, storing it to a user variable, and trying to use that variable for both files via either two watch folders with the second watch folder filtered to accept only .XML files with the source file name without extension of the first .WAV file, or conditional statements "if .XML then" and "if .wav then" and then generating the variable after if WAV file and referencing that to both the "if XML" and the output folder blocks. However both methods result in the XML file with a file name that is literally "Filename_1_%s_guid%.xml". As in it's not putting in the stored variable, just the literal variable itself.
Here is the results of the output folder:
Any ideas a simple way to do this seemingly simple task?
Here's a pic of how I tried (but failed) to apply the variable. I originally applied the set variable output just to two places, but started hitting multiple places as it kept not working.
I seem to be missing how to get the variable to be applied properly.
Thanks everyone!