(script: &str)
| 38 | } |
| 39 | |
| 40 | pub fn run_applescript(script: &str) -> Result<ToolOutput> { |
| 41 | let out = osa::run_applescript(script)?; |
| 42 | Ok(ToolOutput::new(if out.is_empty() { |
| 43 | "(AppleScript ran, no output)".to_string() |
| 44 | } else { |
| 45 | out |
| 46 | }) |
| 47 | .with_title("applescript")) |
| 48 | } |
| 49 | |
| 50 | pub fn run_jxa(script: &str) -> Result<ToolOutput> { |
| 51 | let out = osa::run_jxa(script)?; |
no test coverage detected