Sorry, I didn't read the previous post to well. I took the path out of the rule and used the path in the advanced tab and it is working now. Thanks, I will use this often if I can figure out the language to adjust to my jobs.
So I am a huge novice in the javascript writing. I downloaded the zip file to try and see if I could get your template to work. From what I can tell all I should need to do to get your template to work correctly is change the "pathtoallPDFs" location correct. I tried this and the expression is OK but doesn't return anything.