This content has been marked as final.
Show 5 replies
-
1. Re: JS Running a script within a script.
Harbs. Jun 25, 2010 12:17 AM (in response to John.Kordas)$.evalFile(eventFile);
Harbs
-
2. Re: JS Running a script within a script.
xbytor2 Jun 25, 2010 12:53 AM (in response to Harbs.)You may need to do
$.evalFile(evetFile.toString());
There are parts of the ESTK and Bridge APIs where they want Strings intead of File objects.
-
3. Re: JS Running a script within a script.
Harbs. Jun 25, 2010 1:11 AM (in response to xbytor2)Huh?
I thought the whole difference between eval() and $.evalFile() is that the former takes a string, and the latter takes a File...
Am I missing something?
Harbs
-
4. Re: JS Running a script within a script.
Michael L Hale Jun 25, 2010 6:46 AM (in response to Harbs.)$.evalFile accepts a file or a string that is the full path to a file. It the string is not a path to a file it will throw an error.
$.evalFile(new File(app.path + "/Presets/Scripts/Event Scripts Only/Welcome.jsx")); $.evalFile(app.path + "/Presets/Scripts/Event Scripts Only/Welcome.jsx"); $.evalFile("alert('hello');");// throws file or folder does not exists -
5. Re: JS Running a script within a script.
Harbs. Jun 27, 2010 3:27 AM (in response to Michael L Hale)Ah. That kind of String!
I misread X's post...
Thanks
Harbs




