MCPcopy Create free account
hub / github.com/1jehuang/jcode / run_applescript

Function run_applescript

crates/jcode-app-core/src/tool/computer/sys.rs:40–48  ·  view source on GitHub ↗
(script: &str)

Source from the content-addressed store, hash-verified

38}
39
40pub 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
50pub fn run_jxa(script: &str) -> Result<ToolOutput> {
51 let out = osa::run_jxa(script)?;

Callers 14

notifyFunction · 0.70
frontmost_appFunction · 0.70
dispatchFunction · 0.70
list_appsFunction · 0.70
activate_appFunction · 0.70
hide_appFunction · 0.70
focus_windowFunction · 0.70
move_windowFunction · 0.70
resize_windowFunction · 0.70
minimize_windowFunction · 0.70
close_windowFunction · 0.70
ui_treeFunction · 0.70

Calls 2

with_titleMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected