You don’t need to click on Run in order for the OSL script to work, instead just load it through the node editor. It’s throwing a syntax error because the text editor is expecting a Python script, and hitting Run Script will try to execute it using Python.Â