12 Replies Latest reply on Mar 17, 2015 5:01 AM by Mike-Hardy

    Can a script execute another script?

    Michael Müller-Hillebrand Level 4

      Dear colleagues,


      I am not talking about calling a function from another file for which I used the #include directive. I want to execute a .jsx that I know only at runtime.


      Until now I have found this: If a script file contains


      #target framemaker


      it is possible to use File(lvFilename).execute() (without the target instruction the script would simply open in ESTK).


      But: The execute() method triggers a warning that I should execute only scripts from trustworthy sources (or so…).


      Is there any other method to execute other scripts? Or is there a way to make my scripts trustworthy?


      - Michael