Whenever I try to copy and paste a script from the forum or from the Steinberg’s developer site, the script module gives me a syntax error. This script is copied from the developer site:
-- find all effects and print their names effects = this.program:findEffects(true) if effects then for i, effect in ipairs(effects) do print(effect.name) end else print("Could not find any effects!") end
The script is perfectly ok when typed in manually.
But when I copy and paste it I get this: _Syntax Error: 3: unexpected symbol near char(194):
After deleting the empty line 3 the first error is fixed but then I get this:
Syntax Error: 4: unexpected symbol near char(194): for i, effect in ipairs(effects) do
Does anyone know why is this happening and how to fix this?