5 Replies Latest reply on Apr 15, 2016 6:51 AM by Bruce Bullis

    Call OS commands via scripting

    Simon Björk

      Is there a way to call OS commands via the Premiere scripting API?

       

      Basically I would like to run a python script from within premiere, but I see no way to call a os command.

       

      After Effects has the system.callSystem method, which could look something like this:

       

      cmd = "from sb_pipeline import folderStructure; print folderStructure()"

      // Call the python script.

      var s = system.callSystem('python -c ' + '"' +  cmd + '"');

      alert(s);

       

       

      /Simon