Rename output file by user variable
Posted: Tue Aug 07, 2018 10:00 am
Hi Steinar,
Hope you are all good.
I am not sure if this is bug or just a function that is not being supported. I want to create a workflow that will rename the output file by taking only first 8 or 10 characters of the original filename. My logic is this.
1. create a user variable(%s_name_check%).
2. populate the variable to $left("%s_original_name%", 8) or $left("%s_original_name%", 10). For example A1234567_testfile.mp4 >> A1234567
3. In Deliveries to Folder node, Drop Original Name checked, select the user variable(%s_name_check%) in either Prefix or Suffix
The problem is the output file was renamed as %s_name_check%.mxf instead of the first 8 or 10 characters of the original filename(A1234567.mxf).
I read the help saying Prefix and Suffix support Global Variables, is user variable not supported?
I also tried to use %s_name_check% as the filename for Generate Text File. And it works fine.
Could you give me some hints?
Attached my workflow for your reference.
thanks,
Panda
Hope you are all good.
I am not sure if this is bug or just a function that is not being supported. I want to create a workflow that will rename the output file by taking only first 8 or 10 characters of the original filename. My logic is this.
1. create a user variable(%s_name_check%).
2. populate the variable to $left("%s_original_name%", 8) or $left("%s_original_name%", 10). For example A1234567_testfile.mp4 >> A1234567
3. In Deliveries to Folder node, Drop Original Name checked, select the user variable(%s_name_check%) in either Prefix or Suffix
The problem is the output file was renamed as %s_name_check%.mxf instead of the first 8 or 10 characters of the original filename(A1234567.mxf).
I read the help saying Prefix and Suffix support Global Variables, is user variable not supported?
I also tried to use %s_name_check% as the filename for Generate Text File. And it works fine.
Could you give me some hints?
Attached my workflow for your reference.
thanks,
Panda