Ok ran the code with it commented out and the box that come up has Ok and help in it. If I click help it opens the help dialog to syntax error.
I ran the script on the root "personal folder" and it does not give the error, as soon as I pick a folder under the root of personal is when I get the error.