set YOUR_VARIABLE to every WHATEVER YOU WANT of WHATEVER CONTAINS WHAT YOU WANT whose PROPERTY (is, contains, is not, etc.) and PROPERTY (is, contains, is not, etc.) and PROPERTY (is, contains, is not, etc.).
I had to put the property in the parenthesis.
The answer is as follows…
duplicate (every item in folder pdfFolderPath whose (name contains "W_") and (name contains "HR")) to workingFilesFolderPath
Hope this may help someone else too, and Thanks Craig, if you ever see this!
each condition must have its own boolean evaluation
tell application "Finder"
duplicate (every item in folder pdfFolderPath whose name contains "W_" and name contains "HR") to workingFilesFolderPath
end tell
That makes sense. Thanks for shedding some light on that for me! It is always better to know why something works and not just what code it takes to make something work.