I will post here the part of the script that I think creates problems(the error was for the binary version, so the line count there is not really accurate). I hope you will get some idea about why it gives the error.
var myNewPath = new File($.fileName).parent.toString() + "/Handwriting assets/" + myFont.selection.toString()+".jpg";
var myFile = new File(myNewPath);
var myShowPreview = myFontPanel.add("image",undefined,myFile);
Basically I am trying to put a picture that has the same name as the selected element of the myFont dropdown list. The folder /Handwriting assets/, which contains the images, is in the same folder as the script. First, I thought the person who tested the script did not copy the folder with the images, but when I did that, I got a different error.
Andrei
My Envato portfolio.