public class AppleScriptRunner
extends java.lang.Object
Constructor and Description |
---|
AppleScriptRunner()
Creates the Runner with a default Timeout of 60 seconds
|
AppleScriptRunner(int timeout)
Create the Runner
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
executeScript(java.lang.String script)
Executes the AppleScripts
|
java.lang.String |
formatTextAsParam(java.lang.String string)
Formats a string and escapes all problematic characters
|
public AppleScriptRunner()
public AppleScriptRunner(int timeout)
timeout
- Timeout in Seconds for the execution of the Scriptspublic java.lang.String executeScript(java.lang.String script) throws java.io.IOException
script
- Script to executejava.io.IOException
public java.lang.String formatTextAsParam(java.lang.String string)
string
- Input-StringTV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)