Scripting Guide 4e: Running external programs

With Qt Script for Applications (QSA) it is also possible to start an external process. On Windows, this can be an executable (*.exe).  

The principle is simple in the QSA language (see figure below). In an update of this documentation will be shown how to start an external process with parameters and how to start external processes on Mac OS X and Linux.

 

 

 

What during runtime results in the following message box:

 

 

When the external process is finished, i.e. the property running of the external process is false, the external process can be terminated.

 

 

After the termination of the process, check whether the process was finished

 

At runtime, the message box displays the ID number of the process

 

 

The external process produced two XML files what confirms that the external process has run and been finished correctly.

 

Next: 5. Problem solving
Index