TV-Browser 2.7.5 API

util.misc
Class AppleScriptRunner

java.lang.Object
  extended by util.misc.AppleScriptRunner

public class AppleScriptRunner
extends Object

This class is the Interface to the AppleScript-System. It runs the Scripts

Since:
2.2.1
Author:
bodum

Constructor Summary
AppleScriptRunner()
          Creates the Runner with a default Timeout of 60 seconds
AppleScriptRunner(int timeout)
          Create the Runner
 
Method Summary
 String executeScript(String script)
          Executes the AppleScripts
 String formatTextAsParam(String string)
          Formats a string and escapes all problematic characters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppleScriptRunner

public AppleScriptRunner()
Creates the Runner with a default Timeout of 60 seconds


AppleScriptRunner

public AppleScriptRunner(int timeout)
Create the Runner

Parameters:
timeout - Timeout in Seconds for the execution of the Scripts
Method Detail

executeScript

public String executeScript(String script)
                     throws IOException
Executes the AppleScripts

Parameters:
script - Script to execute
Returns:
Output if exec was successful, null if Error occurred
Throws:
IOException

formatTextAsParam

public String formatTextAsParam(String string)
Formats a string and escapes all problematic characters

Parameters:
string - Input-String
Returns:
string with escaped characters

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)