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<'a, D: DeserializeOwned>(&self) -> Result<D, Error>
Executes the script and does not pass any arguments.
fn execute_with_params<'a, S: Serialize, D: DeserializeOwned>(
&self,
params: S
) -> Result<D, Error>
&self,
params: S
) -> Result<D, Error>
Executes the script and passes the provided arguments.