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