Struct osascript::JavaScript
[−]
[src]
pub struct JavaScript { /* fields omitted */ }
Holds an apple flavoured JavaScript
Methods
impl JavaScript
[src]
fn new(code: &str) -> JavaScript
Creates a new script from the given code.
fn execute<D: Deserialize>(&self) -> Result<D, Error>
Executes the script and does not pass any arguments.
fn execute_with_params<S: Serialize, D: Deserialize>(&self,
params: S)
-> Result<D, Error>
params: S)
-> Result<D, Error>
Executes the script and passes the provided arguments.