-
Why this expression breaks with the new JavaScript?
This expression works fine with the legacy ExtendScript engine enabled but breaks with the newer JavaScript engine.
I ran the update legacy expressions script and it fixed one line.
Why is still returning an error?
Note: I have redacted the last two folders in the path for privacy reasons.
Thanks in advance.
if ($.os.indexOf(“Mac”) != -1)
{myPath = “/Volumes/Macintosh HD – Data/Users/david/Dropbox/xxxxxx/xxxxxxx/”
};
else
{myPath = “file://c:\\\\Expressions\\”
};
myPath += “names.txt”;
$.evalFile (myPath);
eval(thisComp.name)[0];