I need to set a variable to capture variable PDF’s that will be merged by LIKE page counts. The Page counts # is in the PDF file name and (example: 12345_67890_D_T_2.pdf, 102900_666390_D_T_4.pdf, 104500_633390_D_T_4.pdf). In this example PDF there are 3 PDF’s and the PDF with _T_4 need to be merged and there will be 1000’s of PDF’s that need to be merged based on ‘like’ pages.
watch.setvariable “VARPAGES”, left(watch.expandstring("%O"),instr(watch.expandstring("%O"),“T”)-1)
I have the following variable and it gives me an error but i’m using the same VB script to parse another process I have setup and don’t receive any issues. I set me VARPAGES as a local variable under the process as well
WPROC: STAGE6- BATCHING (thread id: 24100) - 16:33:00
 Starting plugin Run Script - 16:33:01
 Run embedded script…
 W3602 : Error 0 on line 1, column 1: Microsoft VBScript runtime error: Invalid procedure call or argument: ‘left’
 W3603 : Error running script.
 Run Script: W1603 : Plugin failed - 16:33:01 (elapsed time: 00:00:00.003)