Script eval() stopped working

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

I have a palette that has a button to run a script. The location of the script is stored in the preferences. I had this working the other day, but now it's not executing the other script. Does this look correct?

Code: Select all

			myWindow.myPanel.runButton.onClick = function () {

				alert("Running :" +ST.scriptFile);
				var sFile = new File(ST.scriptFile);
				sFile.open("r");
				eval(sFile.read());
				sFile.close();

			}
The path that comes up in the alert box is valid. I'm not sure why it's not running when the button is clicked.
Post Reply