MCPcopy Create free account
hub / github.com/Facets-cloud/flow / escapeAppleScriptString

Function escapeAppleScriptString

internal/iterm/iterm.go:197–201  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

195}
196
197func escapeAppleScriptString(s string) string {
198 s = strings.ReplaceAll(s, `\`, `\\`)
199 s = strings.ReplaceAll(s, `"`, `\"`)
200 return s
201}
202
203// quoteAppleScriptString returns an AppleScript expression that evaluates
204// to s. Lines are emitted as separate quoted strings joined with

Callers 2

focusByTTYFunction · 0.70
quoteAppleScriptStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected