INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Script Runner Standalone  (Read 3823 times)

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Script Runner Standalone
« on: April 18, 2009, 05:13:28 am »

The attached file can be used to run scripts standalone without the scripting plugin.
You will need to drop the .cs file into the same directory and then edit the 'run script.bat' so that it points at the right script file.

Then zip the folder back it up, and send it to the user.
They run the batch file and hey presto it does what it does.

The script plugin can be found here, the post contains more information about scripting also.
http://yabb.jriver.com/interact/index.php?topic=38693.msg263177

For reference the script runner is used behind the scenes with the script plugin, so output will be the same.

A bug has been identified with the script runner where after a certain amount of time of the script running the garbage collector collects the Media Center Interface.
A temporary resoloution is to change the top lines of the script to read
Code: [Select]
    public void Init(MediaCenter.MCAutomation mediaCenterInterfaceOld)
    {     
        //Get Interface to Media Center
       MCAutomation mediaCenterInterface = (MediaCenter.MCAutomation)System.Runtime.InteropServices.Marshal.GetActiveObject("MediaJukebox Application");


This will work without the problem.  I will look into a more permanent soloution.
Pages: [1]   Go Up