When pasting scripts that are copied from outside sources there might be an issue with the formatting of quotation marks
When you write scripts, use straight quotation marks "" instead of curly quotation marks “”
Visually the difference can be subtle, but will cause issues with script executions.
Symptoms
- Strings or paths that are surrounded by quotation marks aren't showing as a green color in the script.
For example: - In the script window, the quotation marks should look very straight. The marks that curve toward the quoted text should not be used.
Steps to resolution
- Deleting and retyping the quotation marks directly in the script window will resolve this issue.