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

Function escapeAppleScriptString

internal/warp/warp.go:281–285  ·  view source on GitHub ↗

escapeAppleScriptString escapes a string for safe embedding in a double-quoted AppleScript string literal. Same implementation as the sibling packages — duplicated to avoid cross-package coupling.

(s string)

Source from the content-addressed store, hash-verified

279// double-quoted AppleScript string literal. Same implementation as
280// the sibling packages — duplicated to avoid cross-package coupling.
281func escapeAppleScriptString(s string) string {
282 s = strings.ReplaceAll(s, `\`, `\\`)
283 s = strings.ReplaceAll(s, `"`, `\"`)
284 return s
285}

Callers 2

buildAppleScriptFunction · 0.70

Calls

no outgoing calls

Tested by 1